This commit is contained in:
Allan Niles 2025-05-14 10:07:27 -06:00
parent 9e2a5d2aab
commit 86081d435d
No known key found for this signature in database
GPG Key ID: 4801D0A65C62A5B6
2 changed files with 3 additions and 3 deletions

View File

@ -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"));

View File

@ -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");