-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
15dad09
commit c62ffab
Showing
5 changed files
with
44 additions
and
85 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#include "global.h" | ||
#include "unk_02018380.h" | ||
#include "timer_3.h" | ||
|
||
static UnkStruct_021D10E8 s_021D10E8; | ||
|
||
void sub_02018380(void) { | ||
s_021D10E8.unk0 = 0; | ||
} | ||
|
||
void sub_0201838C(IGT *igt) { | ||
s_021D10E8.unk0 = 1; | ||
s_021D10E8.unk10 = 0; | ||
s_021D10E8.unk14 = 0; | ||
s_021D10E8.unk8 = 0; | ||
s_021D10E8.igt = igt; | ||
s_021D10E8.unk18 = sub_020254FC(); | ||
} | ||
|
||
void sub_020183B0(void) { | ||
if (s_021D10E8.unk0 == 0) { | ||
return; | ||
} | ||
|
||
u64 val = sub_020254FC(); | ||
u64 val2 = sub_02025504(val - s_021D10E8.unk18); | ||
if (s_021D10E8.unk8 >= val2) { | ||
return; | ||
} | ||
|
||
AddIGTSeconds(s_021D10E8.igt, val2 - s_021D10E8.unk8); | ||
s_021D10E8.unk8 = val2; | ||
} |