Use resumeMainLoop and pauseMainLoop

This commit is contained in:
Ethan O'Brien 2023-08-01 13:50:40 -05:00
parent bc046470d7
commit f4a9e0ade1
2 changed files with 6 additions and 2 deletions

View file

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

File diff suppressed because one or more lines are too long