mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-11-04 18:05:06 +01:00
fixed PICO ROM loading and region detection
This commit is contained in:
parent
3e8897d331
commit
e47ffcad81
@ -469,7 +469,7 @@ int load_rom(char *filename)
|
||||
}
|
||||
else if (config.system == SYSTEM_GG)
|
||||
{
|
||||
if (!(system_hw == SYSTEM_GG))
|
||||
if (system_hw != SYSTEM_GG)
|
||||
{
|
||||
/* Game Gear in MS compatibility mode */
|
||||
system_hw = SYSTEM_GGMS;
|
||||
@ -484,7 +484,7 @@ int load_rom(char *filename)
|
||||
region_autodetect();
|
||||
|
||||
/* Genesis mode specific */
|
||||
if (system_hw == SYSTEM_MD)
|
||||
if ((system_hw & SYSTEM_PBC) == SYSTEM_MD)
|
||||
{
|
||||
#ifdef LSB_FIRST
|
||||
/* Byteswap ROM to optimize 16-bit access */
|
||||
@ -529,7 +529,7 @@ int load_rom(char *filename)
|
||||
****************************************************************************/
|
||||
void region_autodetect(void)
|
||||
{
|
||||
if (system_hw != SYSTEM_MD)
|
||||
if ((system_hw & SYSTEM_PBC) != SYSTEM_MD)
|
||||
{
|
||||
region_code = sms_cart_region_detect();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user