mirror of
https://github.com/EmulatorJS/EmulatorJS.git
synced 2026-02-06 11:17:36 +00:00
Add a call to restart on the exit event
This commit is contained in:
parent
f0a79017e5
commit
fc521d20e0
@ -39,10 +39,12 @@ class EJS_GameManager {
|
||||
this.initShaders();
|
||||
|
||||
this.EJS.on("exit", () => {
|
||||
this.toggleMainLoop(0);
|
||||
if (!this.EJS.failedToStart) {
|
||||
this.functions.saveSaveFiles();
|
||||
this.functions.restart();
|
||||
this.functions.saveSaveFiles();
|
||||
}
|
||||
this.toggleMainLoop(0);
|
||||
this.FS.unmount('/data/saves');
|
||||
setTimeout(() => {
|
||||
try {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user