]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Pause also PPC thread when main emulation pauses.
authorToni Wilen <twilen@winuae.net>
Sun, 7 Sep 2014 08:29:29 +0000 (11:29 +0300)
committerToni Wilen <twilen@winuae.net>
Sun, 7 Sep 2014 08:29:29 +0000 (11:29 +0300)
od-win32/win32.cpp

index 0633c5afbccea9f66cd7416f102f25760fd49c69..d17faa89acef6a0468f018d2c530938f2ec917e2 100644 (file)
@@ -92,6 +92,7 @@
 #include "rp.h"
 #include "cloanto/RetroPlatformIPC.h"
 #endif
+#include "uae/ppc.h"
 
 extern int harddrive_dangerous, do_rdbdump, no_rawinput, no_directinput;
 extern int force_directsound;
@@ -490,6 +491,9 @@ bool resumepaused (int priority)
        pause_emulation = 0;
 #ifdef RETROPLATFORM
        rp_pause (pause_emulation);
+#endif
+#ifdef WITH_PPC
+       uae_ppc_pause(0);
 #endif
        setsystime ();
        return true;
@@ -500,6 +504,9 @@ bool setpaused (int priority)
        if (pause_emulation > priority)
                return false;
        pause_emulation = priority;
+#ifdef WITH_PPC
+       uae_ppc_pause(1);
+#endif
        setsoundpaused ();
        blkdev_entergui ();
        pausemouseactive = 1;