Fix invalid file name bug

This commit is contained in:
Ethan O'Brien 2022-08-22 22:13:09 -05:00
parent 45d982b636
commit a5a9916aba
4 changed files with 8 additions and 8 deletions

View file

@ -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;
}

File diff suppressed because one or more lines are too long

View file

@ -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 => {

View file

@ -1 +1 @@
{ "current_version": 23.4 }
{ "current_version": 23.5 }