mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 07:17:45 -04:00
pico, added detection by extension
This commit is contained in:
parent
d4a08748fa
commit
4fc85c80af
5 changed files with 28 additions and 31 deletions
|
@ -837,7 +837,7 @@ int PicoCartInsert(unsigned char *rom, unsigned int romsize, const char *carthw_
|
|||
}
|
||||
pdb_cleanup();
|
||||
|
||||
PicoIn.AHW &= PAHW_MCD|PAHW_SMS;
|
||||
PicoIn.AHW &= PAHW_MCD|PAHW_SMS|PAHW_PICO;
|
||||
|
||||
PicoCartMemSetup = NULL;
|
||||
PicoDmaHook = NULL;
|
||||
|
@ -846,9 +846,9 @@ int PicoCartInsert(unsigned char *rom, unsigned int romsize, const char *carthw_
|
|||
PicoLoadStateHook = NULL;
|
||||
carthw_chunks = NULL;
|
||||
|
||||
if (!(PicoIn.AHW & (PAHW_MCD|PAHW_SMS)))
|
||||
if (!(PicoIn.AHW & (PAHW_MCD|PAHW_SMS|PAHW_PICO)))
|
||||
PicoCartDetect(carthw_cfg);
|
||||
else if (PicoIn.AHW & PAHW_SMS)
|
||||
if (PicoIn.AHW & PAHW_SMS)
|
||||
PicoCartDetectMS();
|
||||
|
||||
// setup correct memory map for loaded ROM
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue