notaz.gp2x.de
/
picodrive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
minor svp
[picodrive.git]
/
Pico
/
Cart.c
diff --git
a/Pico/Cart.c
b/Pico/Cart.c
index
b641130
..
e616622
100644
(file)
--- a/
Pico/Cart.c
+++ b/
Pico/Cart.c
@@
-497,11
+497,15
@@
int PicoCartInsert(unsigned char *rom,unsigned int romsize)
PicoDmaHook = NULL;
\r
PicoResetHook = NULL;
\r
PicoLineHook = NULL;
\r
PicoDmaHook = NULL;
\r
PicoResetHook = NULL;
\r
PicoLineHook = NULL;
\r
+ carthw_chunks = NULL;
\r
+
\r
+ PicoMemReset();
\r
\r
if (!(PicoMCD & 1))
\r
PicoCartDetect();
\r
\r
// setup correct memory map for loaded ROM
\r
\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