mirror of
https://github.com/holub/mame
synced 2025-07-04 01:18:59 +03:00
Fixed issue with the Emscripten port where the emulation would continue to run while paused. [Steven Hugg]
This commit is contained in:
parent
fc688b9fa8
commit
aba51822ee
@ -1314,6 +1314,11 @@ static running_machine * jsmess_machine;
|
|||||||
|
|
||||||
void js_main_loop()
|
void js_main_loop()
|
||||||
{
|
{
|
||||||
|
if (jsmess_machine->paused()) {
|
||||||
|
jsmess_machine->video().frame_update();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
device_scheduler * scheduler;
|
device_scheduler * scheduler;
|
||||||
scheduler = &(jsmess_machine->scheduler());
|
scheduler = &(jsmess_machine->scheduler());
|
||||||
attotime stoptime(scheduler->time() + attotime(0,HZ_TO_ATTOSECONDS(60)));
|
attotime stoptime(scheduler->time() + attotime(0,HZ_TO_ATTOSECONDS(60)));
|
||||||
|
Loading…
Reference in New Issue
Block a user