diff options
author | Thomas <doodrabbit@hotmail.com> | 2021-12-17 20:57:03 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-17 20:57:03 -0500 |
commit | af67eaffa7ab1a347a6f0e59ed7f1e107749d15a (patch) | |
tree | b9f90f7b047b3dc5a411dbf65117bf07b237a37d /arm9/src/unk_02015E30.c | |
parent | 3ab18655ca1311019212b3a2a9dbe32e5fbee55d (diff) | |
parent | 44cd7753b5dde323d1e8274b2dc8a5599729e83f (diff) |
Real-match math_util.c
Diffstat (limited to 'arm9/src/unk_02015E30.c')
-rw-r--r-- | arm9/src/unk_02015E30.c | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/arm9/src/unk_02015E30.c b/arm9/src/unk_02015E30.c deleted file mode 100644 index 2f7b5bb5..00000000 --- a/arm9/src/unk_02015E30.c +++ /dev/null @@ -1,37 +0,0 @@ - -#include "unk_02015E30.h" - -u64 UNK_021C48B0; -u64 UNK_021C48A8; -u64 UNK_021C48A0; -struct IGT * UNK_021C489C; -u32 UNK_021C4898; - -THUMB_FUNC void FUN_02015E30() -{ - UNK_021C4898 = 0; -} - -THUMB_FUNC void FUN_02015E3C(struct IGT *igt) -{ - UNK_021C4898 = 1; - UNK_021C48A8 = 0; - UNK_021C48A0 = 0; - UNK_021C489C = igt; - - UNK_021C48B0 = GetTimer3Count(); -} - -THUMB_FUNC void FUN_02015E60() -{ - if (UNK_021C4898 != 0) - { - u64 res = Timer3CountToSeconds(GetTimer3Count() - UNK_021C48B0); - - if (UNK_021C48A0 < res) - { - AddIGTSeconds(UNK_021C489C, (u32)(res - UNK_021C48A0)); - UNK_021C48A0 = res; - } - } -} |