diff --git a/data/emu-main.js b/data/emu-main.js index 8b297fb..d974018 100644 --- a/data/emu-main.js +++ b/data/emu-main.js @@ -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; } diff --git a/data/emulator.min.js b/data/emulator.min.js index 070202d..5df84ce 100644 --- a/data/emulator.min.js +++ b/data/emulator.min.js @@ -1 +1 @@ -var EJS=function(a){window.EJS_MODULES=a;var n={},o=[];function i(e){if(n[e])return n[e].exports;o.push(e);var t=n[e]={i:e,l:!1,exports:{}};return a[e].call(t.exports,t,t.exports,i),t.l=!0,t.exports}return window.getUsedModules=function(){return o.sort(function(e,t){return t'+n.localization("CORS Error")+"":t.innerHTML=''+n.localization("Network Error")+""}},null,null,null,null,null,function(e){function t(){if(!(navigator.getGamepads||navigator.webkitGetGamepads))throw new Error("get gamepads not found!");if(this.rAF=window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.requestAnimationFrame,!this.rAF)throw new Error("request animation frame was not found!");this.loop()}t.prototype={gamepads:[],rAF:null,getGamepads:function(){return navigator.getGamepads?navigator.getGamepads():navigator.webkitGetGamepads?navigator.webkitGetGamepads():[]},loop:async function(){this.updateGamepadState(),this.rAF.call(null,this.loop.bind(this))},updateGamepadState:function(){for(var n=this.getGamepads(),a=0;athis.options.threshold){var l={};for(r in this.direction)this.direction.hasOwnProperty(r)&&(l[r]=this.direction[r]);var r,c={};for(r in this.direction={x:n,y:a,angle:t},e.direction=this.direction,l)l[r]===this.direction[r]&&(c[r]=!0);if(c.x&&c.y&&c.angle)return e;c.x&&c.y||this.trigger("plain",e),c.x||this.trigger("plain:"+n,e),c.y||this.trigger("plain:"+a,e),c.angle||this.trigger("dir dir:"+t,e)}return e},a.prototype=new e,(a.constructor=a).id=0,a.prototype.prepareNipples=function(){var e=this,a=e.nipples;a.on=e.on.bind(e),a.off=e.off.bind(e),a.options=e.options,a.destroy=e.destroy.bind(e),a.ids=e.ids,a.id=e.id,a.processOnMove=e.processOnMove.bind(e),a.processOnEnd=e.processOnEnd.bind(e),a.get=function(e){if(void 0===e)return a[0];for(var t=0,n=a.length;t