papermario/src/code_ebd0_len_6a0.c

73 lines
1.5 KiB
C
Raw Normal View History

2020-08-04 08:49:11 +02:00
#include "common.h"
2020-08-12 23:13:09 +02:00
void func_800337D0(s16 new_alpha) {
2020-08-16 05:19:00 +02:00
GameStatus* gameStatus = *gGameStatusPtr;
gameStatus->bootAlpha = new_alpha;
}
2020-08-04 08:49:11 +02:00
void func_800337E0(s16 arg0) {
2020-08-16 05:19:00 +02:00
GameStatus* gameStatus = *gGameStatusPtr;
gameStatus->bootRed = arg0;
gameStatus->bootGreen = arg0;
gameStatus->bootBlue = arg0;
}
2020-08-04 08:49:11 +02:00
s16 func_800337F8(subtract_val) {
2020-08-16 05:19:00 +02:00
GameStatus* gameStatus = *gGameStatusPtr;
if (gameStatus->bootAlpha != 0) {
gameStatus->bootAlpha -= subtract_val;
if (gameStatus->bootAlpha << 16 < 0) {
gameStatus->bootAlpha = 0;
}
2020-08-12 23:13:09 +02:00
} else {
return 1;
}
return 0;
}
2020-08-04 08:49:11 +02:00
s16 func_80033830(add_val) {
2020-08-16 05:19:00 +02:00
GameStatus* gameStatus = *gGameStatusPtr;
if (gameStatus->bootAlpha != 0xFF) {
gameStatus->bootAlpha += add_val;
if ((gameStatus->bootAlpha > 0xFF)) {
gameStatus->bootAlpha = 0xFF;
}
2020-08-12 23:13:09 +02:00
} else {
return 1;
}
return 0;
}
2020-08-04 08:49:11 +02:00
void func_80033874(void) {
func_80137D88(0, (*gGameStatusPtr)->bootAlpha);
func_80137E10(0, (*gGameStatusPtr)->bootBlue, (*gGameStatusPtr)->bootGreen, (*gGameStatusPtr)->bootRed);
}
2020-08-13 07:03:47 +02:00
void start_battle_countdown(void) {
D_800A0900 = 5;
}
2020-08-04 08:49:11 +02:00
INCLUDE_ASM(code_ebd0_len_6a0, step_battle);
2020-08-15 09:01:33 +02:00
void func_80033B54(void) {
func_8003E5B0();
if (D_800A0900 < 0) {
draw_main_battle_ui();
}
}
void func_80033B88(void) {
D_8009A650[0] |= 0x08;
nuContRmbForceStop();
D_800A0900 = 5;
}
INCLUDE_ASM(code_ebd0_len_6a0, func_80033BC0);
2020-08-15 09:01:33 +02:00
void func_80033E64(void) {
}