]> git.sesse.net Git - pistorm/commitdiff
Disable mouse/kb hook on Amiga platform shutdown
authorbeeanyew <beeanyew@gmail.com>
Fri, 18 Jun 2021 23:05:08 +0000 (01:05 +0200)
committerbeeanyew <beeanyew@gmail.com>
Fri, 18 Jun 2021 23:05:08 +0000 (01:05 +0200)
platforms/amiga/amiga-platform.c

index 09aa7bd1e6f11cb7869b8b3910cbe1f09bfcd8e0..f12c28de255aa53fa5a7b3d992755961be492fff 100644 (file)
@@ -53,6 +53,9 @@ extern uint8_t rtc_type;
 extern unsigned char cdtv_sram[32 * SIZE_KILO];
 extern unsigned int a314_base;
 
+extern int kb_hook_enabled;
+extern int mouse_hook_enabled;
+
 #define min(a, b) (a < b) ? a : b
 #define max(a, b) (a > b) ? a : b
 
@@ -569,6 +572,10 @@ void shutdown_platform_amiga(struct emulator_config *cfg) {
         a314_emulation_enabled = 0;
     }
 
+    mouse_hook_enabled = 0;
+    kb_hook_enabled = 0;
+
+    kick13_mode = 0;
     cdtv_mode = 0;
 
     autoconfig_reset_all();