kmr_12: use function pointers for unnamed api funcs

This commit is contained in:
Alex Bates 2020-10-20 06:14:50 +01:00
parent 136df602cd
commit 3b3b07c90a
No known key found for this signature in database
GPG Key ID: 5E11C2DB78877706
2 changed files with 5 additions and 3 deletions

View File

@ -264,6 +264,8 @@ ApiStatus DemoJoystickXY(ScriptInstance* script, s32 isInitialCall);
ApiStatus func_802CFE2C(ScriptInstance* script, s32 isInitialCall);
ApiStatus func_802CFD30(ScriptInstance* script, s32 isInitialCall);
ApiStatus func_800441F0(ScriptInstance* script, s32 isInitialCall);
ApiStatus func_802D5830(ScriptInstance* script, s32 isInitialCall);
extern Bytecode* ShakeCam1;
extern Bytecode* ShakeCamX;

View File

@ -193,7 +193,7 @@ NpcGroupList npc_groups = {
// *INDENT-OFF*
Script read_east_sign = {
SI_CALL(0x800441F0, SI_VAR(0)),
SI_CALL(func_800441F0, SI_VAR(0)),
SI_IF_EQ(SI_VAR(0), 1),
SI_RETURN(),
SI_END_IF(),
@ -201,11 +201,11 @@ Script read_east_sign = {
SI_GROUP(0),
// "Goomba King's Fortress Ahead"
SI_CALL(0x802D5830, 1),
SI_CALL(func_802D5830, 1),
SI_CALL(DisablePlayerInput, 1),
SI_CALL(ShowMessageAtScreenPos, 0x1D0168, 160, 40),
SI_CALL(DisablePlayerInput, 0),
SI_CALL(0x802D5830, 0),
SI_CALL(func_802D5830, 0),
SI_RETURN(),
SI_END(),