asm code updated, Bass Masters fix
[picodrive.git] / Pico / Cart.c
index b641130..f82c325 100644 (file)
@@ -498,10 +498,13 @@ int PicoCartInsert(unsigned char *rom,unsigned int romsize)
   PicoResetHook = NULL;\r
   PicoLineHook = NULL;\r
 \r
+  PicoMemReset();\r
+\r
   if (!(PicoMCD & 1))\r
     PicoCartDetect();\r
 \r
   // setup correct memory map for loaded ROM\r
+  // call PicoMemReset again due to possible memmap change\r
   if (PicoMCD & 1)\r
        PicoMemSetupCD();\r
   else PicoMemSetup();\r