X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Pico%2FCart.c;fp=Pico%2FCart.c;h=f2683ca8f5c5ac22ca01a08a0aa5b243043937d6;hb=1cb1584b86a5679b8d32ccfc190f6e76c920810f;hp=47ea1ccac8184c9573ed2d19b523d876538ef0c0;hpb=65ca3034d455b9934e7ff82813e3df49cf56cf87;p=picodrive.git diff --git a/Pico/Cart.c b/Pico/Cart.c index 47ea1cc..f2683ca 100644 --- a/Pico/Cart.c +++ b/Pico/Cart.c @@ -530,7 +530,8 @@ int PicoCartInsert(unsigned char *rom,unsigned int romsize) else PicoMemSetup(); PicoMemReset(); - return PicoReset(1); + PicoPower(); + return 0; } int PicoCartUnload(void) @@ -597,6 +598,12 @@ static void PicoCartDetect(void) sram_size = 0x004000; } + // this game actually doesn't have SRAM, but some weird protection + if (rom_strcmp(0x120, "PUGGSY") == 0) + { + SRam.start = SRam.end = sram_size = 0; + } + if (sram_size) { SRam.data = (unsigned char *) calloc(sram_size, 1);