mirror of
https://github.com/pmret/papermario.git
synced 2024-11-19 09:22:30 +01:00
87 lines
1.7 KiB
C
87 lines
1.7 KiB
C
#include "common.h"
|
|
|
|
void func_80035E54(void);
|
|
|
|
void func_80035DF0(s16 arg0) {
|
|
s16* tempPtr = &D_800A0942;
|
|
|
|
*tempPtr = arg0;
|
|
}
|
|
|
|
void func_80035E00(void) {
|
|
D_800A0948 = 0;
|
|
func_80035E54();
|
|
}
|
|
|
|
void func_80035E24(void) {
|
|
D_800A0948 = 1;
|
|
set_map_transition_effect(8);
|
|
func_80035E54();
|
|
}
|
|
|
|
void func_80035E54(void) {
|
|
u16* mapTransitonAlpha;
|
|
GameStatus** gameStatus = gGameStatusPtr; // :/
|
|
|
|
D_800A0944 = 0;
|
|
D_800A0946 = 4;
|
|
(*gameStatus)->exitAngle = 0.0f;
|
|
mapTransitonAlpha = &gMapTransitionAlpha;
|
|
*mapTransitonAlpha = 0xFF;
|
|
nuContRmbForceStopEnd();
|
|
func_801382AC(mapTransitonAlpha);
|
|
D_8009A650[0] |= 8;
|
|
set_variable(0, SI_SAVE_VAR(1), (*gameStatus)->unk_A9);
|
|
D_8009A5D8 = 0;
|
|
}
|
|
|
|
INCLUDE_ASM(s32, "code_111f0_len_860", func_80035EEC);
|
|
|
|
void func_800360FC(void) {
|
|
GameStatus* gameStatus = GAME_STATUS;
|
|
|
|
if (gameStatus->loadMenuState == 2) {
|
|
draw_status_ui();
|
|
}
|
|
}
|
|
|
|
void func_80036130(void) {
|
|
GameStatus* gameStatus = GAME_STATUS;
|
|
|
|
gMapTransitionAlpha = 0x00;
|
|
D_800A0942 = 0x14;
|
|
D_800A0944 = 0x00;
|
|
|
|
if (gameStatus->prevArea != gameStatus->areaID) {
|
|
gameStatus->changedArea = 1;
|
|
gameStatus->prevArea = gameStatus->areaID;
|
|
} else {
|
|
gameStatus->changedArea = 0;
|
|
}
|
|
}
|
|
|
|
INCLUDE_ASM(s32, "code_111f0_len_860", func_8003617C);
|
|
|
|
void func_800363FC(void) {
|
|
if (D_800A0944 == 4 || D_800A0944 == 0) {
|
|
draw_status_ui();
|
|
}
|
|
}
|
|
|
|
s32 func_80036430(void) {
|
|
PlayerStatus* playerStatus = &gPlayerStatus;
|
|
|
|
gMapTransitionAlpha = 0xFF;
|
|
D_800A0942 = 0x14;
|
|
D_800A0944 = 0x01;
|
|
|
|
playerStatus->flags |= 0x1000;
|
|
|
|
return playerStatus->flags;
|
|
}
|
|
|
|
INCLUDE_ASM(s32, "code_111f0_len_860", func_8003646C);
|
|
|
|
void func_80036640(void) {
|
|
}
|