Fixed a regression where DMG mode on CGB would not activate on most DMG games. Fixes #98

This commit is contained in:
Lior Halphon 2018-07-10 20:28:36 +03:00
parent d9dfbcd199
commit afcb7b8579

View File

@ -732,12 +732,11 @@ Preboot:
ld a, [$143] ld a, [$143]
bit 7, a bit 7, a
call z, EmulateDMG call z, EmulateDMG
ldh [$4C], a
ldh a, [TitleChecksum] ldh a, [TitleChecksum]
ld b, a ld b, a
ldh [$4C], a ; One day, I will know what this switch does and how it differs from FF6C
ldh a, [InputPalette] ldh a, [InputPalette]
and a and a
jr nz, .emulateDMGForCGBGame jr nz, .emulateDMGForCGBGame