From e47ffcad816a45c82cdb9026936d0195a26745d3 Mon Sep 17 00:00:00 2001 From: ekeeke31 Date: Tue, 28 Feb 2012 22:22:07 +0000 Subject: [PATCH] fixed PICO ROM loading and region detection --- source/loadrom.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/loadrom.c b/source/loadrom.c index 272d8b9..3ec2911 100644 --- a/source/loadrom.c +++ b/source/loadrom.c @@ -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(); }