| [KEYS] | |||||
| A=65293 | |||||
| B=65288 | |||||
| Select=101 | |||||
| Start=116 | |||||
| Right=65363 | |||||
| Left=65361 | |||||
| Up=65362 | |||||
| Down=65364 | |||||
| R=65366 | |||||
| L=65365 | |||||
| X=120 | |||||
| Y=121 | |||||
| Debug=49 | |||||
| Boost=50 | |||||
| Lid=51 |
| [View] | |||||
| ScreenLayout=2 | |||||
| SwapScreens=false | |||||
| Rotation=0 | |||||
| ScreenGap=false | |||||
| Filter=0 | |||||
| SecondaryFilter=3 | |||||
| ShowMenu=true | |||||
| ShowToolbar=true | |||||
| ShowStatusbar=true | |||||
| [Window] | |||||
| Scale2x=0 | |||||
| Fullscreen=true | |||||
| [HudDisplay] | |||||
| Fps=false | |||||
| FrameCounter=false | |||||
| LagCounter=false | |||||
| Input=false | |||||
| GraphicalInput=false | |||||
| RTC=false | |||||
| Mic=false | |||||
| [Config] | |||||
| FpsLimiter=true | |||||
| AudoFrameskip=true | |||||
| Frameskip=0 | |||||
| [Audio] | |||||
| Enabled=true | |||||
| Synchronization=0 | |||||
| Interpolation=1 |
| await shell.safe("vba", "--config", "emuconf/vba/vba.cfg", path); | await shell.safe("vba", "--config", "emuconf/vba/vba.cfg", path); | ||||
| } | } | ||||
| async function run_desmume(path, saves) { | |||||
| await cpconf("desmume", ".config/desmume"); | |||||
| await shell.safe("desmume", path); | |||||
| } | |||||
| var emus = { | var emus = { | ||||
| nds: run_desmume, | |||||
| gba: run_visualboy, | gba: run_visualboy, | ||||
| gbc: run_visualboy, | gbc: run_visualboy, | ||||
| }; | }; |
| function updateGames() { | function updateGames() { | ||||
| if (driveMounted) { | if (driveMounted) { | ||||
| var rx = /\.(gba|gbc|nds)$/; | |||||
| var rx = /\.(gba|gbc)$/; | |||||
| fs.readdir(rompath, (err, list) => { | fs.readdir(rompath, (err, list) => { | ||||
| if (err) | if (err) | ||||
| throw err; | throw err; |