Save settings - for cheat menu

This commit is contained in:
Ethan O'Brien 2023-07-03 10:38:45 -05:00
parent 2096fcfe16
commit c3719b100e

View file

@ -2342,6 +2342,7 @@ class EmulatorJS {
checked: false checked: false
}); });
this.updateCheatUI(); this.updateCheatUI();
this.saveSettings();
}) })
this.addEventListener(closeButton, "click", (e) => { this.addEventListener(closeButton, "click", (e) => {
popups[0].remove(); popups[0].remove();
@ -2379,6 +2380,7 @@ class EmulatorJS {
input.checked = !input.checked; input.checked = !input.checked;
this.cheats[i].checked = input.checked; this.cheats[i].checked = input.checked;
this.cheatChanged(input.checked, code, i); this.cheatChanged(input.checked, code, i);
this.saveSettings();
}) })
const close = this.createElement("a"); const close = this.createElement("a");
close.classList.add("ejs_cheat_row_button"); close.classList.add("ejs_cheat_row_button");