diff options
| author | ProjectRevoTPP <projectrevotpp@hotmail.com> | 2020-04-01 13:14:27 -0400 |
|---|---|---|
| committer | ProjectRevoTPP <projectrevotpp@hotmail.com> | 2020-04-01 13:14:27 -0400 |
| commit | b3f92538ad0a840d6a8f7661ee538923a0d4cc71 (patch) | |
| tree | 9193b260802fc3d0672903b76b5cf1e59d04d1d4 /src/code/code_800D31A0.c | |
| parent | c40c29dd8f647a65be3f53645992eab8d93b83aa (diff) | |
| parent | 6fa5c47b87fedf6d974ac8c7b64b7e216457a098 (diff) | |
Merge branch 'master' of https://github.com/zeldaret/oot into fix_spot15_saku
Diffstat (limited to 'src/code/code_800D31A0.c')
| -rw-r--r-- | src/code/code_800D31A0.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/code/code_800D31A0.c b/src/code/code_800D31A0.c new file mode 100644 index 000000000..3f7382440 --- /dev/null +++ b/src/code/code_800D31A0.c @@ -0,0 +1,24 @@ +#include <global.h> +#include <padmgr.h> +#include <vt.h> + +extern PadMgr gPadMgr; + +u32 D_8012DBC0 = false; + +void func_800D31A0() { + osSyncPrintf(VT_FGCOL(RED) "\n**** Freeze!! ****\n" VT_RST); + while (true) { + func_800FF4AC(1000); // msleep + } +} + +void func_800D31F0() { + PadMgr* padMgr = (PadMgr*)(u32)&gPadMgr; // cast required to match + + D_8012DBC0 = (padMgr->unk_2A8 & 2) != 0; +} + +void func_800D3210() { + D_8012DBC0 = false; +} |
