diff --git a/data/emulator.js b/data/emulator.js index d486daa..002c3dd 100644 --- a/data/emulator.js +++ b/data/emulator.js @@ -234,6 +234,7 @@ class EmulatorJS { this.debug = (window.EJS_DEBUG_XX === true); if (this.debug || (window.location && ['localhost', '127.0.0.1'].includes(location.hostname))) this.checkForUpdates(); this.netplayEnabled = (window.EJS_DEBUG_XX === true) && (window.EJS_EXPERIMENTAL_NETPLAY === true); + this.settingsLanguage = window.EJS_settingsLanguage || false; this.config = config; this.currentPopup = null; this.isFastForward = false; @@ -417,6 +418,7 @@ class EmulatorJS { if (!isNaN(text)) return text; if (text.includes("EmulatorJS v")) return text; if (this.config.langJson) { + if (typeof log === "undefined") log = true; if (!this.config.langJson[text] && log) { if(!window.EJS_missingLang) window.EJS_missingLang = []; window.EJS_missingLang.push(text); @@ -3407,9 +3409,9 @@ class EmulatorJS { if (options.length === 1) return; let availableOptions = {}; for (let i=0; i 1) ? name.split("|")[1] : options[0].replace('(Default) ', '')); }) diff --git a/data/loader.js b/data/loader.js index 5cf0230..acdb485 100644 --- a/data/loader.js +++ b/data/loader.js @@ -72,7 +72,6 @@ config.gameId = window.EJS_gameID; config.backgroundImg = window.EJS_backgroundImage; config.controlScheme = window.EJS_controlScheme; - config.settingsLanguage = window.EJS_settingsLanguage || false; if (typeof window.EJS_language === "string" && window.EJS_language !== "en-US") { try {