]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
On the fly mode change reset fix
authorToni Wilen <twilen@winuae.net>
Sun, 19 Feb 2023 15:57:24 +0000 (17:57 +0200)
committerToni Wilen <twilen@winuae.net>
Sun, 19 Feb 2023 15:57:24 +0000 (17:57 +0200)
newcpu.cpp

index 7524b9cdc48432875a37ffe05ab867bfc3903a42..968c24c56a1583aababa5c5e6198e66d31398e57 100644 (file)
@@ -6626,6 +6626,12 @@ void m68k_go (int may_quit)
                }
 #endif
                run_func();
+
+               if (quit_program < 0) {
+                       quit_program = -quit_program;
+               }
+               if (quit_program == UAE_QUIT)
+                       break;
        }
        protect_roms(false);
        mman_set_barriers(true);