papermario/src/code_3bf0_len_6f0.c

36 lines
797 B
C
Raw Normal View History

2020-08-04 08:49:11 +02:00
#include "common.h"
2020-09-07 23:12:31 +02:00
void func_800287F0(void) {
2020-09-08 22:15:51 +02:00
// TODO: Figure out macros
GameStatus* gameStatus;
2020-09-07 23:12:31 +02:00
GameStatus* gameStatus2;
2020-10-04 22:11:49 +02:00
gameStatus = GAME_STATUS;
2020-09-07 23:12:31 +02:00
gameStatus->stickX = 0;
2020-10-04 22:11:49 +02:00
gameStatus2 = GAME_STATUS;
2020-09-07 23:12:31 +02:00
gameStatus->currentButtons = 0;
gameStatus->pressedButtons = 0;
gameStatus->heldButtons = 0;
gameStatus2->stickY = 0;
2020-09-08 22:15:51 +02:00
// TODO: macro
{
2020-10-04 22:11:49 +02:00
GameStatus* gameStatus = GAME_STATUS;
2020-09-08 22:15:51 +02:00
gameStatus->prevButtons = 0;
2020-10-02 08:07:54 +02:00
gameStatus->unk_50[0] = 4;
gameStatus->unk_48[0] = 15;
2020-09-08 22:15:51 +02:00
gameStatus->unk_60 = 0;
gameStatus->unk_58 = 0;
}
2020-09-07 23:12:31 +02:00
}
2020-08-04 08:49:11 +02:00
2020-10-14 18:11:59 +02:00
void func_80028838(void) {
func_800287F0();
D_8009A6A0 = 0;
D_8009A6A2 = 0;
D_8009A6A4 = 0;
D_8009A6A6 = 0;
}
2020-08-04 08:49:11 +02:00
2020-09-25 23:18:09 +02:00
INCLUDE_ASM(s32, "code_3bf0_len_6f0", update_input);