Use resumeMainLoop and pauseMainLoop

This commit is contained in:
Ethan O'Brien 2023-08-01 13:50:40 -05:00
parent e7d4121c0f
commit 22d4291a00

View file

@ -240,7 +240,11 @@ class EJS_GameManager {
}) })
} }
toggleMainLoop(playing) { toggleMainLoop(playing) {
this.functions.toggleMainLoop(playing); if (playing) {
this.Module.resumeMainLoop();
} else {
this.Module.pauseMainLoop();
}
} }
getCoreOptions() { getCoreOptions() {
return this.functions.getCoreOptions(); return this.functions.getCoreOptions();