add core options

This commit is contained in:
Ethan O'Brien 2022-08-09 10:26:53 -05:00
parent a72222c39a
commit 69c31edf11
19 changed files with 33 additions and 23 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -1441,6 +1441,9 @@ window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) {
_0x567713 = '',
_0x567717 = function() {
if (_0x55627a.coreVer === 2) {
_0x55627a.elements.settings.panels.home.querySelector('[role="menu"]').innerHTML = "";
_0x7f9f36.setNormalOptionsMenu.call(_0x55627a);
_0x7f9f36.setCoreOptionsMenu.call(_0x55627a);
var mainLoop = _0x4d7024.Module.cwrap('toggleMainLoop', 'null', ['number']);
_0x4d7024.Module.resumeMainLoop = function() {
mainLoop(1);
@ -4988,16 +4991,19 @@ window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) {
'default': 'download'
}
}
var _this = this;
_0xdcec2a.getGameCoreOptions && _0xdcec2a.getGameCoreOptions().split('\n').forEach(function(_0x2bef5a, _0x49b64b) {
var _0x5995db = _0x2bef5a.split('; '),
_0x16274c = _0x5995db[0x0];
if (0x0 === _0x16274c.indexOf('fba-dipswitch-')) {
if (0x0 === _0x16274c.indexOf('fba-dipswitch-') || _this.coreVer === 2) {
var _0x757776 = _0x5995db[0x1].split('|'),
_0x1f895e = _0x16274c.replace(/_/g, ' ').replace(/.+\-(.+)/, '$1');
_0xa88a13[_0x16274c] = {
_0x1f895e = _0x16274c.split("|")[0].replace(/_/g, ' ').replace(/.+\-(.+)/, '$1');
_0x757776.slice(1, -1);
if (_0x757776.length === 1) return;
_0xa88a13[_0x16274c.split("|")[0]] = {
'label': _0x1f895e,
'options': _0x757776.slice(0x1, -0x1),
'default': _0x757776[0x0].replace('(Default) ', ''),
'options': _0x757776,
'default': (_0x16274c.split("|").length > 1) ? _0x16274c.split("|")[1] : _0x757776[0].replace('(Default) ', ''),
'netplay': true
};
}
@ -5319,13 +5325,15 @@ window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) {
_0xdcec2a.getGameCoreOptions && _0xdcec2a.getGameCoreOptions().split('\n').forEach(function(_0x4a987e, _0x10bd7a) {
var _0x2c1832 = _0x4a987e.split('; '),
_0x1ddc5f = _0x2c1832[0x0];
if (0x0 === _0x1ddc5f.indexOf('fba-dipswitch-')) {
if (0x0 === _0x1ddc5f.indexOf('fba-dipswitch-')/* || _0x17edbf.coreVer === 2*/) {
var _0xbd808 = _0x2c1832[0x1].split('|'),
_0x3c4b1a = _0x1ddc5f.replace(/_/g, ' ').replace(/.+\-(.+)/, '$1');
_0x42a7b1[_0x1ddc5f] = {
_0x3c4b1a = _0x1ddc5f.split("|")[0].replace(/_/g, ' ').replace(/.+\-(.+)/, '$1');
_0xbd808.slice(1, -1);
if (_0xbd808.length === 1) return;
_0x42a7b1[_0x1ddc5f.split("|")[0]] = {
'label': _0x3c4b1a,
'options': _0xbd808.slice(0x1, -0x1),
'default': _0xbd808[0x0].replace('(Default) ', ''),
'options': _0xbd808,
'default': (_0x1ddc5f.split("|").length > 1) ? _0x1ddc5f.split("|")[1] : _0xbd808[0].replace('(Default) ', ''),
'netplay': true
};
}
@ -6310,7 +6318,7 @@ window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) {
}
return path
}
this.version = '2.0.1';
this.version = '2.2.1';
this.system = '';
this.adUrl = null;
this.gameName = null;

File diff suppressed because one or more lines are too long

View file

@ -1,5 +1,5 @@
(async function() {
var VERSION = 2.1;
var VERSION = 2.2;
if ((window.location && ['localhost', '127.0.0.1'].includes(location.hostname)) ||
'undefined' != typeof EJS_DEBUG_XX && true === EJS_DEBUG_XX) {
fetch('https://raw.githack.com/ethanaobrien/emulatorjs/main/data/version.json').then(response => {

View file

@ -1,6 +1,6 @@
{
"nes": {
"version":"20",
"version":"21",
"netplay": 1,
"old": {"wasm":1, "asmjs":1 },
"state": 1,
@ -10,7 +10,7 @@
"oldCores": 1
},
"snes": {
"version":"17",
"version":"18",
"netplay": 1,
"old": {"wasm":1, "asmjs":1 },
"state": 1,
@ -96,7 +96,9 @@
"netplay": 0,
"state": 1,
"asmjs": 1,
"wasm": 1
"wasm": 1,
"newCores": 0,
"oldCores": 1
},
"msx": {
"version":"1",
@ -117,7 +119,7 @@
"oldCores": 1
},
"vb": {
"version":"3",
"version":"4",
"netplay": 0,
"old": {"wasm":1, "asmjs":1 },
"state": 1,
@ -136,7 +138,7 @@
"oldCores": 1
},
"atari5200": {
"version":"1",
"version":"2",
"netplay": 1,
"state": 1,
"asmjs": 1,
@ -181,7 +183,7 @@
"oldCores": 1
},
"gb": {
"version":"8",
"version":"9",
"netplay": 0,
"state": 1,
"old": {"wasm":0, "asmjs":1 },
@ -200,7 +202,7 @@
"oldCores": 1
},
"gba": {
"version":"6",
"version":"7",
"netplay": 0,
"old": {"wasm":0, "asmjs":1 },
"state": 1,
@ -264,7 +266,7 @@
"oldCores": 1
},
"n64": {
"version":"9",
"version":"10",
"netplay": 1,
"state": 1,
"asmjs": 0,
@ -274,7 +276,7 @@
"oldCores": 1
},
"nds": {
"version":"12",
"version":"13",
"old": {"wasm":1, "asmjs":1 },
"netplay": 0,
"state": 1,

View file

@ -1 +1 @@
{ "current_version": 2.1 }
{ "current_version": 2.2 }