Volume, Cheats, start dos

This commit is contained in:
Ethan O'Brien 2022-03-15 21:05:41 -05:00
parent ed111b36fb
commit 7b2a0f4344
6 changed files with 21 additions and 9 deletions

View file

@ -1062,7 +1062,8 @@ window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) {
'arcade': ['zip'],
'fba0.2.97.29': ['zip'],
'mame2003': ['zip'],
'mame': ['zip']
'mame': ['zip'],
'dos': ['zip']
},
_0x29078e = {
'psx': 'psx',
@ -1095,7 +1096,8 @@ window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) {
'arcade': 'arcade',
'fba0.2.97.29': 'fba0.2.97.29',
'jaguar': 'jaguar',
'mame2003': 'mame2003'
'mame2003': 'mame2003',
'dos': 'dos'
},
_0xc6823 = this,
_0x1143c5 = _0xc6823.system;
@ -2117,10 +2119,7 @@ window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) {
}) : _0x3641d6(_0x2458d5, _0x124167);
}
if (_0x2c1832.coreVer === 2) {
_0x1e2c68.element(_0x2c1832.elements.buttons.cheat) && _0x132da7(_0x2c1832.elements.buttons.cheat, true);
_0x1e2c68.element(_0x2c1832.elements.buttons.gamepad) && _0x132da7(_0x2c1832.elements.buttons.gamepad, true);
_0x1e2c68.element(_0x2c1832.elements.buttons.mute) && _0x132da7(_0x2c1832.elements.buttons.mute, true);
_0x1e2c68.element(_0x2c1832.elements.inputs.volume) && _0x132da7(_0x2c1832.elements.inputs.volume, true);
if (Array.isArray(_0x2c1832.elements.buttons.play)) {
for (var i=0; i<_0x2c1832.elements.buttons.play.length; i++) {
_0x1e2c68.element(_0x2c1832.elements.buttons.play[i]) && _0x132da7(_0x2c1832.elements.buttons.play[i], true);
@ -4970,6 +4969,9 @@ window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) {
case 'mame':
_0xa88a13 = {};
break;
case 'dos':
_0xa88a13 = {};
break;
default:
_0xa88a13 = {}, console.warn('Unsupported emulator');
}
@ -6295,6 +6297,9 @@ window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) {
this.game.innerHTML = '';
this.config = _0x5dc0c0({}, _0x39ca5e, _0x6954aa.defaults, _0x2ba0e6 || {});
this.coreVer = function(core, useBeta) {
/*if (['dos'].includes(core)) {
return 2;
}*/
if (useBeta === true) {
if (window.WebAssembly) {
var supportedCores = ['nes', 'snes', 'gb', 'nds'];

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -1,13 +1,13 @@
{
"nes": {
"version":"17",
"version":"18",
"netplay": 1,
"state": 1,
"asmjs": 1,
"wasm": 1
},
"snes": {
"version":"14",
"version":"15",
"netplay": 1,
"state": 1,
"asmjs": 1,
@ -134,7 +134,7 @@
"wasm": 1
},
"gb": {
"version":"5",
"version":"6",
"netplay": 0,
"state": 1,
"asmjs": 1,
@ -204,7 +204,7 @@
"wasm": 0
},
"nds": {
"version":"10",
"version":"11",
"netplay": 0,
"state": 1,
"asmjs": 1,
@ -244,5 +244,12 @@
"state": 1,
"asmjs": 1,
"wasm": 1
},
"dos": {
"version":"1",
"netplay": 0,
"state": 0,
"asmjs": 0,
"wasm": 1
}
}