run game again on dialog close

This commit is contained in:
Georges-Antoine Assi
2025-03-27 18:38:58 -04:00
parent 1d6650fd1a
commit 0d85a31448
3 changed files with 2 additions and 3 deletions

View File

@@ -50,6 +50,7 @@ const HEADERS = [
] as const;
function closeDialog() {
window.EJS_emulator?.play();
show.value = false;
rom.value = null;
selectedSaves.value = [];

View File

@@ -59,6 +59,7 @@ function closeDialog() {
show.value = false;
rom.value = null;
selectedStates.value = [];
window.EJS_emulator?.play();
}
watch(

View File

@@ -179,7 +179,6 @@ function displayMessage(
// Saves management
async function loadSave(save: SaveSchema) {
window.EJS_emulator.play();
saveRef.value = save;
const { data } = await api.get(save.download_path.replace("/api", ""), {
@@ -231,8 +230,6 @@ window.EJS_onSaveSave = async function ({
// States management
async function loadState(state: StateSchema) {
window.EJS_emulator.play();
const { data } = await api.get(state.download_path.replace("/api", ""), {
responseType: "arraybuffer",
});