From f2a55bdcfca1a35c1942a54f8cb8d957a4b00cbd Mon Sep 17 00:00:00 2001 From: Georges-Antoine Assi Date: Wed, 5 Mar 2025 15:04:22 -0500 Subject: [PATCH] hotfix settin save state location --- frontend/src/views/Player/EmulatorJS/Player.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frontend/src/views/Player/EmulatorJS/Player.vue b/frontend/src/views/Player/EmulatorJS/Player.vue index 7c0e71729..6d92152d2 100644 --- a/frontend/src/views/Player/EmulatorJS/Player.vue +++ b/frontend/src/views/Player/EmulatorJS/Player.vue @@ -218,6 +218,11 @@ window.EJS_onGameStart = async () => { setTimeout(() => { if (saveRef.value) window.EJS_onLoadSave(); if (stateRef.value) window.EJS_onLoadState(); + + window.EJS_emulator.settings = { + ...window.EJS_emulator.settings, + "save-state-location": "browser", + }; }, 10); const savesMonitor = await createIndexedDBDiffMonitor("/data/saves", 2000);