X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Pico%2FCart.c;h=e616622a4488c996ae384c2aadbfc8ca9581539b;hb=12f0f94d1595ac3bf4a33ded6023197b22572163;hp=9a24d039c5c164fca450bc25deaf79b76f36cc50;hpb=017512f2823405ea2d02fa04b4c0754d7c4cba65;p=picodrive.git diff --git a/Pico/Cart.c b/Pico/Cart.c index 9a24d03..e616622 100644 --- a/Pico/Cart.c +++ b/Pico/Cart.c @@ -497,11 +497,15 @@ int PicoCartInsert(unsigned char *rom,unsigned int romsize) PicoDmaHook = NULL; PicoResetHook = NULL; PicoLineHook = NULL; + carthw_chunks = 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(); @@ -639,7 +643,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(); }