pico, added detection by extension

This commit is contained in:
kub 2022-02-10 22:06:47 +00:00
parent d4a08748fa
commit 4fc85c80af
5 changed files with 28 additions and 31 deletions

View file

@ -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