mirror of
https://github.com/EmulatorJS/EmulatorJS.git
synced 2024-09-20 10:56:30 +00:00
Fix invalid file name bug
This commit is contained in:
parent
45d982b636
commit
a5a9916aba
4 changed files with 8 additions and 8 deletions
|
@ -6290,7 +6290,7 @@ window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) {
|
|||
}
|
||||
return path
|
||||
}
|
||||
this.version = '2.3.4';
|
||||
this.version = '2.3.5';
|
||||
this.system = '';
|
||||
this.adUrl = null;
|
||||
this.gameName = null;
|
||||
|
@ -6508,13 +6508,13 @@ window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) {
|
|||
if (this.startName && (force === true || this.startName !== 'rom')) {
|
||||
rv = this.startName;
|
||||
} else if (!this.config.gameUrl.startsWith('blob:')) {
|
||||
rv = this.config.gameUrl.replace(/\#/g, '');
|
||||
rv = this.config.gameUrl.split('/').pop().replace(/[^a-z0-9 ,.]/ig, '');
|
||||
} else if (this.gameName) {
|
||||
rv = (noSystem===true?'':this.system)+'-'+this.gameName.replace(/\#/g, '');
|
||||
rv = (noSystem===true?'':this.system+'-')+this.gameName.replace(/\#/g, '');
|
||||
} else if (this.config.gameId) {
|
||||
rv = (noSystem===true?'':this.system)+'-'+this.config.gameId;
|
||||
rv = (noSystem===true?'':this.system+'-')+this.config.gameId;
|
||||
} else if (force === true) {
|
||||
rv = this.config.gameUrl.replace(/\#/g, '');
|
||||
rv = this.config.gameUrl.split('/').pop().replace(/[^a-z0-9 ,.]/ig, '');
|
||||
}
|
||||
return rv;
|
||||
}
|
||||
|
|
2
data/emulator.min.js
vendored
2
data/emulator.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -1,5 +1,5 @@
|
|||
(async function() {
|
||||
let VERSION = 23.4;
|
||||
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 => {
|
||||
|
|
|
@ -1 +1 @@
|
|||
{ "current_version": 23.4 }
|
||||
{ "current_version": 23.5 }
|
||||
|
|
Loading…
Reference in a new issue