Fixed issue with the Emscripten port where the emulation would continue to run while paused. [Steven Hugg]

This commit is contained in:
Justin Kerk 2017-05-03 03:09:19 +00:00
parent fc688b9fa8
commit aba51822ee

View File

@ -1314,6 +1314,11 @@ static running_machine * jsmess_machine;
void js_main_loop()
{
if (jsmess_machine->paused()) {
jsmess_machine->video().frame_update();
return;
}
device_scheduler * scheduler;
scheduler = &(jsmess_machine->scheduler());
attotime stoptime(scheduler->time() + attotime(0,HZ_TO_ATTOSECONDS(60)));