mirror of
https://github.com/EmulatorJS/EmulatorJS.git
synced 2024-09-20 02:46:23 +00:00
commit
9968db9f47
3 changed files with 35 additions and 1 deletions
BIN
data/cores/mednafen_pcfx-wasm.data
Normal file
BIN
data/cores/mednafen_pcfx-wasm.data
Normal file
Binary file not shown.
|
@ -28,6 +28,7 @@ class EmulatorJS {
|
|||
'mame2003': 'mame2003',
|
||||
'mednafen_ngp': 'ngp',
|
||||
'mednafen_pce': 'pce',
|
||||
'mednafen_pcfx': 'pcfx',
|
||||
'mednafen_psx_hw': 'psx',
|
||||
'mednafen_wswan': 'ws',
|
||||
'melonds': 'nds',
|
||||
|
@ -72,6 +73,7 @@ class EmulatorJS {
|
|||
'3do': 'opera',
|
||||
'psp': 'ppsspp',
|
||||
'pce': 'mednafen_pce',
|
||||
'pcfx': 'mednafen_pcfx',
|
||||
'ngp': 'mednafen_ngp',
|
||||
'ws': 'mednafen_wswan',
|
||||
'coleco': 'gearcoleco',
|
||||
|
@ -95,6 +97,7 @@ class EmulatorJS {
|
|||
'mame2003': ['zip'],
|
||||
'mednafen_ngp': ['ngp', 'ngc'],
|
||||
'mednafen_pce': ['pce', 'cue', 'ccd', 'iso', 'img', 'bin', 'chd'],
|
||||
'mednafen_pcfx': ['cue', 'ccd', 'toc', 'chd'],
|
||||
'mednafen_psx': ['cue', 'toc', 'm3u', 'ccd', 'exe', 'pbp', 'chd'],
|
||||
'mednafen_wswan': ['ws', 'wsc', 'pc2'],
|
||||
'mednafen_psx_hw': ['cue', 'toc', 'm3u', 'ccd', 'exe', 'pbp', 'chd'],
|
||||
|
@ -869,7 +872,7 @@ class EmulatorJS {
|
|||
}
|
||||
|
||||
let resData = {};
|
||||
const needsCue = (["mednafen_psx", "mednafen_psx_hw", "mednafen_pce"].includes(this.getCore())) && !this.config.disableCue;
|
||||
const needsCue = (["mednafen_psx", "mednafen_psx_hw", "mednafen_pce", "mednafen_pcfx"].includes(this.getCore())) && !this.config.disableCue;
|
||||
const altName = this.config.gameUrl.startsWith("blob:") ? (this.config.gameName || "game") : this.config.gameUrl.split('/').pop().split("#")[0].split("?")[0];
|
||||
this.checkCompression(new Uint8Array(data), this.localization("Decompress Game Data"), (fileName, fileData) => {
|
||||
if (fileName.includes("/")) {
|
||||
|
@ -2122,6 +2125,23 @@ class EmulatorJS {
|
|||
{id: 6, label: this.localization('LEFT')},
|
||||
{id: 7, label: this.localization('RIGHT')},
|
||||
];
|
||||
} else if ('pcfx' === this.getControlScheme()) {
|
||||
buttons = [
|
||||
{id: 8, label: this.localization('I')},
|
||||
{id: 0, label: this.localization('II')},
|
||||
{id: 9, label: this.localization('III')},
|
||||
{id: 1, label: this.localization('IV')},
|
||||
{id: 10, label: this.localization('V')},
|
||||
{id: 11, label: this.localization('VI')},
|
||||
{id: 3, label: this.localization('RUN')},
|
||||
{id: 2, label: this.localization('SELECT')},
|
||||
{id: 12, label: this.localization('MODE1')},
|
||||
{id: 13, label: this.localization('MODE2')},
|
||||
{id: 4, label: this.localization('UP')},
|
||||
{id: 5, label: this.localization('DOWN')},
|
||||
{id: 6, label: this.localization('LEFT')},
|
||||
{id: 7, label: this.localization('RIGHT')},
|
||||
];
|
||||
} else {
|
||||
buttons = [
|
||||
{id: 0, label: this.localization('B')},
|
||||
|
@ -2870,6 +2890,19 @@ class EmulatorJS {
|
|||
{"type":"dpad","location":"left","left":"50%","right":"50%","joystickInput":false,"inputValues":[4,5,6,7]}
|
||||
];
|
||||
info.push(...speedControlButtons);
|
||||
} else if ('pcfx' === this.getControlScheme()) {
|
||||
info = [
|
||||
{"type":"button","text":"I","id":"i","location":"right","right":5,"top":70,"bold":true,"input_value":8},
|
||||
{"type":"button","text":"II","id":"ii","location":"right","right":75,"top":70,"bold":true,"input_value":0},
|
||||
{"type":"button","text":"III","id":"iii","location":"right","right":145,"top":70,"bold":true,"input_value":9},
|
||||
{"type":"button","text":"IV","id":"iv","location":"right","right":5,"top":0,"bold":true,"input_value":1},
|
||||
{"type":"button","text":"V","id":"v","location":"right","right":75,"top":0,"bold":true,"input_value":10},
|
||||
{"type":"button","text":"VI","id":"vi","location":"right","right":145,"top":0,"bold":true,"input_value":11},
|
||||
{"type":"dpad","location":"left","left":"50%","right":"50%","joystickInput":false,"inputValues":[4,5,6,7]},
|
||||
{"type":"button","text":"Select","id":"select","location":"center","left":-5,"fontSize":15,"block":true,"input_value":2},
|
||||
{"type":"button","text":"Run","id":"run","location":"center","left":60,"fontSize":15,"block":true,"input_value":3}
|
||||
];
|
||||
info.push(...speedControlButtons);
|
||||
} else {
|
||||
info = [
|
||||
{"type":"button","text":"Y","id":"y","location":"right","left":40,"bold":true,"input_value":9},
|
||||
|
|
|
@ -141,6 +141,7 @@
|
|||
"Atari 7800": "atari7800",
|
||||
"Atari 2600": "atari2600",
|
||||
"NEC TurboGrafx-16/SuperGrafx/PC Engine": "pce",
|
||||
"NEC PC-FX": "pcfx",
|
||||
"SNK NeoGeo Pocket (Color)": "ngp",
|
||||
"Bandai WonderSwan (Color)": "ws",
|
||||
"ColecoVision": "coleco"
|
||||
|
|
Loading…
Reference in a new issue