From 16cb0c89dc026b451f59f5c3f465a27f68feaa01 Mon Sep 17 00:00:00 2001 From: Michael Green <84688932+michael-j-green@users.noreply.github.com> Date: Wed, 6 Mar 2024 22:38:32 +1100 Subject: [PATCH] Hide unneeded buttons from the emulator (#324) Closes #317 Removes the save and load file buttons - leaving the save and load state buttons --- gaseous-server/wwwroot/emulators/EmulatorJS.html | 5 +++++ gaseous-server/wwwroot/pages/emulator.html | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/gaseous-server/wwwroot/emulators/EmulatorJS.html b/gaseous-server/wwwroot/emulators/EmulatorJS.html index 7baa7fc..fa789b0 100644 --- a/gaseous-server/wwwroot/emulators/EmulatorJS.html +++ b/gaseous-server/wwwroot/emulators/EmulatorJS.html @@ -40,6 +40,11 @@ EJS_threads = false; + EJS_Buttons = { + saveSavFiles: false, + loadSavFiles: false + } + EJS_onSaveState = function(e) { var returnValue = { "ScreenshotByteArrayBase64": btoa(Uint8ToString(e.screenshot)), diff --git a/gaseous-server/wwwroot/pages/emulator.html b/gaseous-server/wwwroot/pages/emulator.html index 24f9bd2..fd1f62d 100644 --- a/gaseous-server/wwwroot/pages/emulator.html +++ b/gaseous-server/wwwroot/pages/emulator.html @@ -53,10 +53,14 @@ emuBios = ''; } else { emuBios = '/api/v1.1/Bios/zip/' + platformId; + console.log("Using BIOS link: " + emuBios); } switch (getQueryString('engine', 'string')) { case 'EmulatorJS': + console.log("Emulator: " + getQueryString('engine', 'string')); + console.log("Core: " + getQueryString('core', 'string')); + $('#emulator').load('/emulators/EmulatorJS.html?v=' + AppVersion); break; }