idle loop detection (Cyclone only, with debug stuff)
[picodrive.git] / Pico / Cart.c
index a0d38a0..e65b509 100644 (file)
@@ -548,6 +548,7 @@ int PicoCartInsert(unsigned char *rom,unsigned int romsize)
 int PicoCartUnload(void)\r
 {\r
   if (Pico.rom != NULL) {\r
+    SekFinishIdleDet();\r
     free(Pico.rom);\r
     Pico.rom=NULL;\r
   }\r