mirror of
https://github.com/EmulatorJS/EmulatorJS.git
synced 2024-09-20 02:46:23 +00:00
parent
9a2af7f22e
commit
330bd94fc2
2 changed files with 6 additions and 3 deletions
|
@ -12,7 +12,7 @@ class EJS_GameManager {
|
|||
simulateInput: this.Module.cwrap('simulate_input', 'null', ['number', 'number', 'number']),
|
||||
toggleMainLoop: this.Module.cwrap('toggleMainLoop', 'null', ['number']),
|
||||
getCoreOptions: this.Module.cwrap('get_core_options', 'string', []),
|
||||
setVariable: this.Module.cwrap('set_variable', 'null', ['string', 'string']),
|
||||
setVariable: this.Module.cwrap('ejs_set_variable', 'null', ['string', 'string']),
|
||||
setCheat: this.Module.cwrap('set_cheat', 'null', ['number', 'number', 'string']),
|
||||
resetCheat: this.Module.cwrap('reset_cheat', 'null', []),
|
||||
toggleShader: this.Module.cwrap('shader_enable', 'null', ['number']),
|
||||
|
@ -23,7 +23,6 @@ class EJS_GameManager {
|
|||
saveSaveFiles: this.Module.cwrap('cmd_savefiles', '', []),
|
||||
supportsStates: this.Module.cwrap('supports_states', 'number', []),
|
||||
loadSaveFiles: this.Module.cwrap('refresh_save_files', 'null', []),
|
||||
setVolume: this.Module.cwrap('set_volume', 'null', ['number']),
|
||||
toggleFastForward: this.Module.cwrap('toggle_fastforward', 'null', ['number']),
|
||||
setFastForwardRatio: this.Module.cwrap('set_ff_ratio', 'null', ['number']),
|
||||
toggleRewind: this.Module.cwrap('toggle_rewind', 'null', ['number']),
|
||||
|
|
|
@ -46,7 +46,9 @@ class EmulatorJS {
|
|||
'snes9x': 'snes',
|
||||
'stella2014': 'atari2600',
|
||||
'virtualjaguar': 'jaguar',
|
||||
'yabause': 'segaSaturn'
|
||||
'yabause': 'segaSaturn',
|
||||
'amiga': 'puae',
|
||||
'vice_x64': 'c64'
|
||||
}
|
||||
return options[core] || core;
|
||||
}
|
||||
|
@ -79,6 +81,8 @@ class EmulatorJS {
|
|||
'ngp': 'mednafen_ngp',
|
||||
'ws': 'mednafen_wswan',
|
||||
'coleco': 'gearcoleco',
|
||||
'puae': 'amiga',
|
||||
'c64': 'vice_x64'
|
||||
}
|
||||
if (this.isSafari && this.isMobile && this.getCore(true) === "n64") {
|
||||
return "parallel_n64";
|
||||
|
|
Loading…
Reference in a new issue