Decompile countdownTimerSetVisible

This commit is contained in:
Ryan Dwyer
2019-11-03 21:02:37 +10:00
parent 650d88d31b
commit b35dd09ce5
3 changed files with 12 additions and 20 deletions
+8 -19
View File
@@ -54839,25 +54839,14 @@ glabel func0f09054c
/* f090804: 00000000 */ sll $zero,$zero,0x0
);
GLOBAL_ASM(
glabel countdownTimerSetVisible
/* f090808: 10a00008 */ beqz $a1,.L0f09082c
/* f09080c: 3c028007 */ lui $v0,0x8007
/* f090810: 3c028007 */ lui $v0,0x8007
/* f090814: 24429904 */ addiu $v0,$v0,-26364
/* f090818: 8c4e0000 */ lw $t6,0x0($v0)
/* f09081c: 00807827 */ nor $t7,$a0,$zero
/* f090820: 01cfc024 */ and $t8,$t6,$t7
/* f090824: 03e00008 */ jr $ra
/* f090828: ac580000 */ sw $t8,0x0($v0)
.L0f09082c:
/* f09082c: 24429904 */ addiu $v0,$v0,-26364
/* f090830: 8c590000 */ lw $t9,0x0($v0)
/* f090834: 03244025 */ or $t0,$t9,$a0
/* f090838: ac480000 */ sw $t0,0x0($v0)
/* f09083c: 03e00008 */ jr $ra
/* f090840: 00000000 */ sll $zero,$zero,0x0
);
void countdownTimerSetVisible(u32 flag, bool show)
{
if (show) {
g_CountdownTimerVisible &= ~flag;
} else {
g_CountdownTimerVisible |= flag;
}
}
GLOBAL_ASM(
glabel func0f090844
+1
View File
@@ -22,6 +22,7 @@ extern u32 var80067a58;
extern u32 var800663d8;
extern u32 var80067b30;
extern u32 var80067b78;
extern u32 g_CountdownTimerVisible;
extern u32 g_StageFlags;
extern struct audiodefinition audiodefinitions[];
+3 -1
View File
@@ -14957,7 +14957,9 @@ u32 var800698f4 = 0x00000000;
u32 var800698f8 = 0x00000000;
u32 var800698fc = 0x00000000;
u32 var80069900 = 0x00000000;
u32 var80069904 = 0x00000001;
u32 g_CountdownTimerVisible = 1; // 80069904
u32 var80069908 = 0x00000000;
u32 var8006990c = 0x00000000;
u32 var80069910 = 0x00000000;