X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Pico%2FCart.c;h=f82c3252c7c866dd95396f1c8131e8a76fd0aa3c;hb=8831ef19a03770189816740eb2304ad2cb9a07a7;hp=7c3f36d49e52d4d6c53403744287b8405b898fae;hpb=f8ef8ff7100baa0ac0ecfcacb47aea3a9e24bc38;p=picodrive.git diff --git a/Pico/Cart.c b/Pico/Cart.c index 7c3f36d..f82c325 100644 --- a/Pico/Cart.c +++ b/Pico/Cart.c @@ -496,11 +496,15 @@ int PicoCartInsert(unsigned char *rom,unsigned int romsize) PicoMemResetHooks(); PicoDmaHook = NULL; PicoResetHook = NULL; + PicoLineHook = NULL; + + PicoMemReset(); if (!(PicoMCD & 1)) PicoCartDetect(); // setup correct memory map for loaded ROM + // call PicoMemReset again due to possible memmap change if (PicoMCD & 1) PicoMemSetupCD(); else PicoMemSetup(); @@ -638,7 +642,8 @@ void PicoCartDetect(void) *(int *) (Pico.rom+0x1f0) = 0x20204520; // SVP detection - if (name_cmp("Virtua Racing") == 0) + if (name_cmp("Virtua Racing") == 0 || + name_cmp("VIRTUA RACING") == 0) { PicoSVPInit(); }