From 933c6248851aeaea2e38a2675f683b4535acb303 Mon Sep 17 00:00:00 2001 From: Michael Green <84688932+michael-j-green@users.noreply.github.com> Date: Fri, 25 Oct 2024 00:09:51 +1100 Subject: [PATCH] Enabled load and save buttons in addition to standard state load and save (#445) --- gaseous-server/wwwroot/emulators/EmulatorJS.html | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/gaseous-server/wwwroot/emulators/EmulatorJS.html b/gaseous-server/wwwroot/emulators/EmulatorJS.html index fa789b0..c102a32 100644 --- a/gaseous-server/wwwroot/emulators/EmulatorJS.html +++ b/gaseous-server/wwwroot/emulators/EmulatorJS.html @@ -41,11 +41,10 @@ EJS_threads = false; EJS_Buttons = { - saveSavFiles: false, - loadSavFiles: false + exitEmulation: false } - EJS_onSaveState = function(e) { + EJS_onSaveState = function (e) { var returnValue = { "ScreenshotByteArrayBase64": btoa(Uint8ToString(e.screenshot)), "StateByteArrayBase64": btoa(Uint8ToString(e.state)) @@ -72,7 +71,7 @@ returnValue = undefined; } - EJS_onLoadState = function(e) { + EJS_onLoadState = function (e) { showDialog('emulatorloadstate', { "romId": romId, "IsMediaGroup": IsMediaGroup }); }