From: kub Date: Mon, 17 Jul 2023 20:02:20 +0000 (+0200) Subject: sms, some handling for gg carts running in sms mode X-Git-Tag: v2.00~186 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca206ba1aa05f5bd157f82cbea441e5bc04ce007;p=picodrive.git sms, some handling for gg carts running in sms mode --- diff --git a/pico/sms.c b/pico/sms.c index f102cf44..9ea975c4 100644 --- a/pico/sms.c +++ b/pico/sms.c @@ -590,6 +590,15 @@ static u32 region_pal[] = { // cf. GX+, core/cart_hw/sms_cartc.c 0x40007080 /* S.Harrier EU */ , 0x40007038 /* Taito Chase */, }; +// TMR product codes and hardware type for known GG in SMS mode +static u32 gg_smsmode[] = { // cf https://smspower.org/Tags/SMS-GG + 0x60002401 /* Castl.Ilusion */, 0x60101018 /* Chase HQ */, + 0x70709018 /* Olympic Gold */ , 0x70009038 /* Outrun EU */, + 0x60801068 /* Predator 2 */ , 0x70408098 /* Prince.Persia */, + 0x50101037 /* Rastan Saga */ , 0x70006018 /* RC Grandprix */, + 0x60002415 /* Super Kickoff */, 0x60801108 /* WWF.Steelcage */, +}; + void PicoResetMS(void) { unsigned tmr; @@ -631,6 +640,11 @@ void PicoResetMS(void) Pico.m.pal = 1; // requires 50Hz timing break; } + for (i = 0; i < sizeof(gg_smsmode)/sizeof(*gg_smsmode); i++) + if (id == gg_smsmode[i] && !PicoIn.hwSelect) { + PicoIn.AHW &= ~PAHW_GG; // requires SMS mode + break; + } break; } }