mirror of
https://github.com/rommapp/romm.git
synced 2026-12-04 21:02:21 +01:00
run game again on dialog close
This commit is contained in:
@@ -50,6 +50,7 @@ const HEADERS = [
|
||||
] as const;
|
||||
|
||||
function closeDialog() {
|
||||
window.EJS_emulator?.play();
|
||||
show.value = false;
|
||||
rom.value = null;
|
||||
selectedSaves.value = [];
|
||||
|
||||
@@ -59,6 +59,7 @@ function closeDialog() {
|
||||
show.value = false;
|
||||
rom.value = null;
|
||||
selectedStates.value = [];
|
||||
window.EJS_emulator?.play();
|
||||
}
|
||||
|
||||
watch(
|
||||
|
||||
@@ -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",
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user