core, revisit Sega 8 bit hardware handling

This commit is contained in:
kub 2023-02-22 23:22:45 +00:00
parent cab84f29e5
commit 0aa63fce12
9 changed files with 63 additions and 58 deletions

View file

@ -332,11 +332,11 @@ static void system_announce(void)
if (PicoIn.AHW & PAHW_SMS) {
sys_name = "Master System";
if (Pico.m.hardware & PMS_HW_GG)
if (PicoIn.AHW & PAHW_GG)
sys_name = "Game Gear";
else if (Pico.m.hardware & PMS_HW_SG)
else if (PicoIn.AHW & PAHW_SG)
sys_name = "SG-1000";
else if (Pico.m.hardware & PMS_HW_SC)
else if (PicoIn.AHW & PAHW_SC)
sys_name = "SC-3000";
else if (Pico.m.hardware & PMS_HW_JAP)
sys_name = "Mark III";

View file

@ -217,7 +217,7 @@ static void do_pal_update_sms(void)
int i;
if (!(Pico.video.reg[0] & 0x4)) {
int sg = !!(Pico.m.hardware & (PMS_HW_SG|PMS_HW_SC));
int sg = !!(PicoIn.AHW & (PAHW_SG|PAHW_SC));
for (i = Pico.est.SonicPalCount; i >= 0; i--)
do_pal_convert(localPal+i*0x40, tmspal+sg*0x10, currentConfig.gamma, currentConfig.gamma2);
} else {