mirror of
https://github.com/EmulatorJS/EmulatorJS.git
synced 2026-02-06 11:17:36 +00:00
no no
This commit is contained in:
parent
9e2a5d2aab
commit
86081d435d
@ -87,7 +87,7 @@ class EJS_GameManager {
|
||||
}
|
||||
let path = key;
|
||||
if (key.trim().endsWith("/")) {
|
||||
const invalidCharacters = /[#<$+%>!`&*"|{}/\\?"=@:^\r\n]/ig;
|
||||
const invalidCharacters = /[#<$+%>!`&*'|{}/\\?"=@:^\r\n]/ig;
|
||||
let name = this.EJS.config.externalFiles[key].split("/").pop().split("#")[0].split("?")[0].replace(invalidCharacters, "").trim();
|
||||
if (!name) return done();
|
||||
const files = await this.EJS.checkCompression(new Uint8Array(res.data), this.EJS.localization("Decompress Game Assets"));
|
||||
|
||||
@ -1320,7 +1320,7 @@ class EmulatorJS {
|
||||
// If the value is an object, merge it with the default button properties
|
||||
|
||||
if (this.defaultButtonOptions[key]) {
|
||||
// copy properties from the button definition if they aren"t null
|
||||
// copy properties from the button definition if they aren't null
|
||||
for (const prop in buttonUserOpts[key]) {
|
||||
if (buttonUserOpts[key][prop] !== null) {
|
||||
mergedButtonOptions[key][prop] = buttonUserOpts[key][prop];
|
||||
@ -1386,7 +1386,7 @@ class EmulatorJS {
|
||||
this.addEventListener(this.game, "mousedown", hideMenu);
|
||||
const parent = this.createElement("ul");
|
||||
const addButton = (title, hidden, functi0n) => {
|
||||
//<li><a href="#" onclick="return false">"+title+"</a></li>
|
||||
//<li><a href="#" onclick="return false">'+title+'</a></li>
|
||||
const li = this.createElement("li");
|
||||
if (hidden) li.hidden = true;
|
||||
const a = this.createElement("a");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user