lots of win32 port work
[picodrive.git] / Pico / Cart.c
index 9a24d03..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
@@ -639,7 +642,8 @@ void PicoCartDetect(void)
     *(int *) (Pico.rom+0x1f0) = 0x20204520;\r
 \r
   // SVP detection\r
-  if (name_cmp("Virtua Racing") == 0)\r
+  if (name_cmp("Virtua Racing") == 0 ||\r
+      name_cmp("VIRTUA RACING") == 0)\r
   {\r
     PicoSVPInit();\r
   }\r