From aba51822ee26ee58e44717c1c22c002588a42085 Mon Sep 17 00:00:00 2001 From: Justin Kerk Date: Wed, 3 May 2017 03:09:19 +0000 Subject: [PATCH] Fixed issue with the Emscripten port where the emulation would continue to run while paused. [Steven Hugg] --- src/emu/machine.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/emu/machine.cpp b/src/emu/machine.cpp index 33868cd8d57..f674c3d003b 100644 --- a/src/emu/machine.cpp +++ b/src/emu/machine.cpp @@ -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)));