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:
parent
40930acf11
commit
d886e76960
4 changed files with 24 additions and 24 deletions
5
spec
5
spec
|
@ -691,7 +691,10 @@ beginseg
|
||||||
include "$(BUILD_DIR)/src/code/sys_matrix.o"
|
include "$(BUILD_DIR)/src/code/sys_matrix.o"
|
||||||
include "$(BUILD_DIR)/src/code/sys_ucode.o"
|
include "$(BUILD_DIR)/src/code/sys_ucode.o"
|
||||||
include "$(BUILD_DIR)/src/code/sys_rumble.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"
|
include "$(BUILD_DIR)/src/code/irqmgr.o"
|
||||||
#if PLATFORM_N64
|
#if PLATFORM_N64
|
||||||
include "$(BUILD_DIR)/src/code/code_n64dd_800AD410.o"
|
include "$(BUILD_DIR)/src/code/code_n64dd_800AD410.o"
|
||||||
|
|
|
@ -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
|
|
11
src/code/sys_debug_controller.c
Normal file
11
src/code/sys_debug_controller.c
Normal 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
9
src/code/sys_freeze.c
Normal 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);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue