]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Generic pause/unpause functions.
authorToni Wilen <twilen@winuae.net>
Sat, 8 Oct 2016 13:59:56 +0000 (16:59 +0300)
committerToni Wilen <twilen@winuae.net>
Sat, 8 Oct 2016 13:59:56 +0000 (16:59 +0300)
devices.cpp
include/devices.h

index 5a948096e74ef8f6e133facbdc884c8aa374bb65..16b42ef2a8fef4cb96f626ac85a6a30f17a49273 100644 (file)
@@ -59,6 +59,7 @@
 #include "x86.h"
 #include "ethernet.h"
 #include "drawing.h"
+#include "videograb.h"
 #ifdef RETROPLATFORM
 #include "rp.h"
 #endif
@@ -450,4 +451,28 @@ void devices_restore_start(void)
 void devices_syncchange(void)
 {
        x86_bridge_sync_change();
-}
\ No newline at end of file
+}
+
+void devices_pause(void)
+{
+#ifdef WITH_PPC
+       uae_ppc_pause(1);
+#endif
+       blkdev_entergui();
+#ifdef RETROPLATFORM
+       rp_pause(pause_emulation);
+#endif
+       pausevideograb(true);
+}
+
+void devices_unpause(void)
+{
+       blkdev_exitgui();
+#ifdef RETROPLATFORM
+       rp_pause(pause_emulation);
+#endif
+#ifdef WITH_PPC
+       uae_ppc_pause(0);
+#endif
+       pausevideograb(false);
+}
index 1cc6e2d28365593fa8f17c4207206ec13fca3bed..d0dba4b37ec5edf36cf846c4d56fe2e115137dcc 100644 (file)
@@ -14,5 +14,8 @@ void do_leave_program(void);
 void virtualdevice_init(void);
 void devices_restore_start(void);
 void device_check_config(void);
+void devices_pause(void);
+void devices_unpause(void);
+
 
 #endif /* UAE_DEVICES_H */