notaz.gp2x.de
/
picodrive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lots of win32 port work
[picodrive.git]
/
Pico
/
Cart.c
diff --git
a/Pico/Cart.c
b/Pico/Cart.c
index
9a24d03
..
f82c325
100644
(file)
--- a/
Pico/Cart.c
+++ b/
Pico/Cart.c
@@
-498,10
+498,13
@@
int PicoCartInsert(unsigned char *rom,unsigned int romsize)
PicoResetHook = NULL;
\r
PicoLineHook = NULL;
\r
\r
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
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
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
*(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
{
\r
PicoSVPInit();
\r
}
\r