mirror of
https://github.com/EmulatorJS/EmulatorJS.git
synced 2024-09-20 02:46:23 +00:00
Use resumeMainLoop and pauseMainLoop
This commit is contained in:
parent
bc046470d7
commit
f4a9e0ade1
2 changed files with 6 additions and 2 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();
|
||||
|
|
2
data/emulator.min.js
vendored
2
data/emulator.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue