mirror of
https://github.com/EmulatorJS/EmulatorJS.git
synced 2026-02-06 11:17:36 +00:00
Version 2.3.5
This commit is contained in:
parent
f9787a7396
commit
aafebe762c
1973
data/emu-main.js
1973
data/emu-main.js
File diff suppressed because one or more lines are too long
252
data/emulator.js
252
data/emulator.js
File diff suppressed because one or more lines are too long
2
data/emulator.min.js
vendored
2
data/emulator.min.js
vendored
File diff suppressed because one or more lines are too long
@ -1,11 +1,11 @@
|
||||
(async function() {
|
||||
var VERSION = 3;
|
||||
let VERSION = 23.5;
|
||||
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 => {
|
||||
if (response.ok) {
|
||||
response.text().then(body => {
|
||||
var version = JSON.parse(body);
|
||||
let version = JSON.parse(body);
|
||||
if (VERSION < version.current_version) {
|
||||
console.log('Using emulatorjs version ' + VERSION + ' but the newest version is ' + version.current_version + '\nopen https://github.com/ethanaobrien/emulatorjs to update');
|
||||
}
|
||||
@ -13,10 +13,10 @@
|
||||
}
|
||||
})
|
||||
}
|
||||
var scriptTag = document.getElementsByTagName('script')[0];
|
||||
let scriptTag = document.getElementsByTagName('script')[0];
|
||||
function loadStyle(file) {
|
||||
return new Promise(function(resolve, reject) {
|
||||
var css = document.createElement('link');
|
||||
let css = document.createElement('link');
|
||||
css.rel = 'stylesheet';
|
||||
css.href = function() {
|
||||
if ('undefined' != typeof EJS_paths && typeof EJS_paths[file] == 'string') {
|
||||
@ -34,7 +34,7 @@
|
||||
}
|
||||
function loadScript(file) {
|
||||
return new Promise(function (resolve, reject) {
|
||||
var script = document.createElement('script');
|
||||
let script = document.createElement('script');
|
||||
script.src = function() {
|
||||
if ('undefined' != typeof EJS_paths && typeof EJS_paths[file] == 'string') {
|
||||
return EJS_paths[file];
|
||||
@ -57,7 +57,7 @@
|
||||
await loadStyle('emu-css.min.css');
|
||||
await loadScript('emulator.min.js');
|
||||
}
|
||||
var config = {};
|
||||
let config = {};
|
||||
config.gameUrl = EJS_gameUrl;
|
||||
'undefined' != typeof EJS_mameCore && (config.mameCore = EJS_mameCore);
|
||||
'undefined' != typeof EJS_biosUrl && (config.biosUrl = EJS_biosUrl);
|
||||
|
||||
25
data/v.json
25
data/v.json
@ -1,6 +1,6 @@
|
||||
{
|
||||
"nes": {
|
||||
"version":"23",
|
||||
"version":"24",
|
||||
"netplay": 1,
|
||||
"old": {"wasm":1, "asmjs":1 },
|
||||
"state": 1,
|
||||
@ -10,7 +10,7 @@
|
||||
"oldCores": 1
|
||||
},
|
||||
"snes": {
|
||||
"version":"20",
|
||||
"version":"21",
|
||||
"netplay": 1,
|
||||
"old": {"wasm":1, "asmjs":1 },
|
||||
"state": 1,
|
||||
@ -47,12 +47,13 @@
|
||||
"oldCores": 1
|
||||
},
|
||||
"arcade": {
|
||||
"version":"14",
|
||||
"version":"15",
|
||||
"netplay": 1,
|
||||
"state": 1,
|
||||
"asmjs": 1,
|
||||
"asmjs": 0,
|
||||
"wasm": 1,
|
||||
"newCores": 0,
|
||||
"old": {"wasm":1, "asmjs":1 },
|
||||
"newCores": 1,
|
||||
"oldCores": 1
|
||||
},
|
||||
"fba0.2.97.29": {
|
||||
@ -119,7 +120,7 @@
|
||||
"oldCores": 1
|
||||
},
|
||||
"vb": {
|
||||
"version":"6",
|
||||
"version":"7",
|
||||
"netplay": 0,
|
||||
"old": {"wasm":1, "asmjs":1 },
|
||||
"state": 1,
|
||||
@ -138,7 +139,7 @@
|
||||
"oldCores": 1
|
||||
},
|
||||
"atari5200": {
|
||||
"version":"3",
|
||||
"version":"4",
|
||||
"netplay": 1,
|
||||
"state": 1,
|
||||
"asmjs": 1,
|
||||
@ -183,7 +184,7 @@
|
||||
"oldCores": 1
|
||||
},
|
||||
"gb": {
|
||||
"version":"11",
|
||||
"version":"12",
|
||||
"netplay": 0,
|
||||
"state": 1,
|
||||
"old": {"wasm":0, "asmjs":1 },
|
||||
@ -202,7 +203,7 @@
|
||||
"oldCores": 1
|
||||
},
|
||||
"gba": {
|
||||
"version":"9",
|
||||
"version":"10",
|
||||
"netplay": 0,
|
||||
"state": 1,
|
||||
"old": {"wasm":0, "asmjs":1 },
|
||||
@ -266,7 +267,7 @@
|
||||
"oldCores": 1
|
||||
},
|
||||
"n64": {
|
||||
"version":"12",
|
||||
"version":"13",
|
||||
"netplay": 1,
|
||||
"state": 1,
|
||||
"asmjs": 0,
|
||||
@ -276,7 +277,7 @@
|
||||
"oldCores": 1
|
||||
},
|
||||
"nds": {
|
||||
"version":"15",
|
||||
"version":"16",
|
||||
"old": {"wasm":1, "asmjs":1 },
|
||||
"netplay": 0,
|
||||
"state": 1,
|
||||
@ -304,7 +305,7 @@
|
||||
"oldCores": 1
|
||||
},
|
||||
"mame2003": {
|
||||
"version":"4",
|
||||
"version":"5",
|
||||
"old": {"wasm":0, "asmjs":1 },
|
||||
"netplay": 1,
|
||||
"state": 1,
|
||||
|
||||
@ -1 +1 @@
|
||||
{ "current_version": 3 }
|
||||
{ "current_version": 23.5 }
|
||||
|
||||
Loading…
Reference in New Issue
Block a user