mirror of
https://github.com/EmulatorJS/EmulatorJS.git
synced 2024-09-20 10:56:30 +00:00
Use resumeMainLoop and pauseMainLoop
This commit is contained in:
parent
e7d4121c0f
commit
22d4291a00
1 changed files with 5 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue