reset behavior changed, Puggsy detection added
[picodrive.git] / Pico / Cart.c
index d6f6dd6..f2683ca 100644 (file)
@@ -530,7 +530,8 @@ int PicoCartInsert(unsigned char *rom,unsigned int romsize)
   else PicoMemSetup();\r
   PicoMemReset();\r
 \r
-  return PicoReset(1);\r
+  PicoPower();\r
+  return 0;\r
 }\r
 \r
 int PicoCartUnload(void)\r
@@ -597,6 +598,12 @@ static void PicoCartDetect(void)
     sram_size  = 0x004000;\r
   }\r
 \r
+  // this game actually doesn't have SRAM, but some weird protection\r
+  if (rom_strcmp(0x120, "PUGGSY") == 0)\r
+  {\r
+    SRam.start = SRam.end = sram_size = 0;\r
+  }\r
+\r
   if (sram_size)\r
   {\r
     SRam.data = (unsigned char *) calloc(sram_size, 1);\r
@@ -666,7 +673,9 @@ static void PicoCartDetect(void)
 \r
   // Detect 12-in-1 mapper\r
   else if ((name_cmp("ROBOCOP 3") == 0 && Pico.romsize == 0x200000) ||\r
-    (rom_strcmp(0x160, "FLICKY") == 0 && Pico.romsize >= 0x200000))\r
+    (rom_strcmp(0x160, "FLICKY") == 0 && Pico.romsize >= 0x200000)  ||\r
+    (name_cmp(" SHOVE IT!") == 0 && Pico.romsize >= 0x200000) ||\r
+    (name_cmp("MS PACMAN") == 0 && Pico.romsize >= 0x200000)) // bad dump?\r
   {\r
     carthw_12in1_startup();\r
   }\r