1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2024-12-28 15:56:51 +00:00

Split code_800D31A0.c into sys_freeze.c and sys_debug_controller.c (#2315)

This commit is contained in:
cadmic 2024-12-08 16:38:58 -08:00 committed by GitHub
parent 40930acf11
commit d886e76960
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 24 additions and 24 deletions

5
spec
View file

@ -691,7 +691,10 @@ beginseg
include "$(BUILD_DIR)/src/code/sys_matrix.o"
include "$(BUILD_DIR)/src/code/sys_ucode.o"
include "$(BUILD_DIR)/src/code/sys_rumble.o"
include "$(BUILD_DIR)/src/code/code_800D31A0.o"
include "$(BUILD_DIR)/src/code/sys_freeze.o"
#if DEBUG_FEATURES
include "$(BUILD_DIR)/src/code/sys_debug_controller.o"
#endif
include "$(BUILD_DIR)/src/code/irqmgr.o"
#if PLATFORM_N64
include "$(BUILD_DIR)/src/code/code_n64dd_800AD410.o"

View file

@ -1,23 +0,0 @@
#include "global.h"
#include "terminal.h"
#if DEBUG_FEATURES
u32 gIsCtrlr2Valid = false;
#endif
NORETURN void func_800D31A0(void) {
PRINTF(VT_FGCOL(RED) "\n**** Freeze!! ****\n" VT_RST);
for (;;) {
Sleep_Msec(1000);
}
}
#if DEBUG_FEATURES
void func_800D31F0(void) {
gIsCtrlr2Valid = (gPadMgr.validCtrlrsMask & 2) != 0;
}
void func_800D3210(void) {
gIsCtrlr2Valid = false;
}
#endif

View file

@ -0,0 +1,11 @@
#include "global.h"
u32 gIsCtrlr2Valid = false;
void func_800D31F0(void) {
gIsCtrlr2Valid = (gPadMgr.validCtrlrsMask & 2) != 0;
}
void func_800D3210(void) {
gIsCtrlr2Valid = false;
}

9
src/code/sys_freeze.c Normal file
View file

@ -0,0 +1,9 @@
#include "global.h"
#include "terminal.h"
NORETURN void func_800D31A0(void) {
PRINTF(VT_FGCOL(RED) "\n**** Freeze!! ****\n" VT_RST);
for (;;) {
Sleep_Msec(1000);
}
}