Fixed copyright screen not showing up on certain emulators (#2664)

* Fix old intro not showing up on VBA

* Update intro.c

* Update intro.c

* Update intro.c
This commit is contained in:
DizzyEggg 2023-07-27 03:33:01 +02:00 committed by GitHub
parent da9b421ae1
commit 1baa57418e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1096,6 +1096,10 @@ static u8 SetUpCopyrightScreen(void)
REG_DISPCNT = DISPCNT_MODE_0 | DISPCNT_OBJ_1D_MAP | DISPCNT_BG0_ON;
SetSerialCallback(SerialCB_CopyrightScreen);
GameCubeMultiBoot_Init(&gMultibootProgramStruct);
// REG_DISPCNT needs to be overwritten the second time, because otherwise the intro won't show up on VBA 1.7.2 and John GBA Lite emulators.
// The REG_DISPCNT overwrite is NOT needed in m-GBA, No$GBA, VBA 1.8.0, My Boy and Pizza Boy GBA emulators.
case 1:
REG_DISPCNT = DISPCNT_MODE_0 | DISPCNT_OBJ_1D_MAP | DISPCNT_BG0_ON;
default:
UpdatePaletteFade();
gMain.state++;