mirror of
https://github.com/EmulatorJS/EmulatorJS.git
synced 2024-09-20 02:46:23 +00:00
Build more cores
This commit is contained in:
parent
4e63c47680
commit
e504a356df
1 changed files with 17 additions and 1 deletions
|
@ -17,8 +17,13 @@ class EmulatorJS {
|
||||||
}
|
}
|
||||||
getCore(generic) {
|
getCore(generic) {
|
||||||
const core = this.config.system;
|
const core = this.config.system;
|
||||||
|
//todo: sega32x, TurboGrafs-16 (pce), Wanderswan (ws), ngp, msx
|
||||||
if (generic) {
|
if (generic) {
|
||||||
const options = {
|
const options = {
|
||||||
|
'virtualjaguar': 'jaguar',
|
||||||
|
'handy': 'lynx',
|
||||||
|
'yabause': 'segaSaturn', //NOT WORKING
|
||||||
|
'genesis_plus_gx': 'uh oh',//MS, MD, GG, CD... which do we return? //NOT WORKING
|
||||||
'fceumm': 'nes',
|
'fceumm': 'nes',
|
||||||
'snes9x': 'snes',
|
'snes9x': 'snes',
|
||||||
'a5200': 'atari5200',
|
'a5200': 'atari5200',
|
||||||
|
@ -34,11 +39,22 @@ class EmulatorJS {
|
||||||
'mednafen_psx_hw': 'psx',
|
'mednafen_psx_hw': 'psx',
|
||||||
'melonds': 'nds',
|
'melonds': 'nds',
|
||||||
'nestopia': 'nes',
|
'nestopia': 'nes',
|
||||||
'opera': '3do'
|
'opera': '3do',
|
||||||
|
'prosystem': 'atari7800',
|
||||||
|
'stella2014': 'atari2600'
|
||||||
}
|
}
|
||||||
return options[core] || core;
|
return options[core] || core;
|
||||||
}
|
}
|
||||||
const options = {
|
const options = {
|
||||||
|
'jaguar': 'virtualjaguar',
|
||||||
|
'lynx': 'handy',
|
||||||
|
'segaSaturn': 'yabause',
|
||||||
|
'segaMS': 'genesis_plus_gx',
|
||||||
|
'segaMD': 'genesis_plus_gx',
|
||||||
|
'segaGG': 'genesis_plus_gx',
|
||||||
|
'segaCD': 'genesis_plus_gx',
|
||||||
|
'atari2600': 'stella2014',
|
||||||
|
'atari7800': 'prosystem',
|
||||||
'nes': 'fceumm',
|
'nes': 'fceumm',
|
||||||
'snes': 'snes9x',
|
'snes': 'snes9x',
|
||||||
'atari5200': 'a5200',
|
'atari5200': 'a5200',
|
||||||
|
|
Loading…
Reference in a new issue