Decompile fadeCancel

This commit is contained in:
Ryan Dwyer 2020-03-09 17:50:24 +10:00
parent cf2a8502b6
commit dc26469aba
2 changed files with 10 additions and 18 deletions

View File

@ -392,7 +392,7 @@ glabel func0f167c88
void func0f167e7c(s32 stagenum)
{
func0f1688c8();
fadeCancel();
var80084014 = 0;
var80084010 = 0;
@ -845,22 +845,14 @@ bool fadeIsActive(void)
return fade80084058 >= 0;
}
GLOBAL_ASM(
glabel func0f1688c8
/* f1688c8: 3c018008 */ lui $at,0x8008
/* f1688cc: a4204054 */ sh $zero,0x4054($at)
/* f1688d0: 3c01bf80 */ lui $at,0xbf80
/* f1688d4: 44812000 */ mtc1 $at,$f4
/* f1688d8: 3c018008 */ lui $at,0x8008
/* f1688dc: e4244058 */ swc1 $f4,0x4058($at)
/* f1688e0: 3c018008 */ lui $at,0x8008
/* f1688e4: ac20405c */ sw $zero,0x405c($at)
/* f1688e8: 3c018008 */ lui $at,0x8008
/* f1688ec: ac204060 */ sw $zero,0x4060($at)
/* f1688f0: 3c018008 */ lui $at,0x8008
/* f1688f4: 03e00008 */ jr $ra
/* f1688f8: a4204064 */ sh $zero,0x4064($at)
);
void fadeCancel(void)
{
g_FadeNumFrames = 0;
fade80084058 = -1;
g_FadePrevColor = 0;
g_FadeColor = 0;
fade80084064 = 0;
}
GLOBAL_ASM(
glabel func0f1688fc

View File

@ -11,7 +11,7 @@ u32 func0f167b84(void);
u32 func0f167c88(void);
void func0f167e7c(s32 stagenum);
u32 func0f1685d8(void);
void func0f1688c8(void);
void fadeCancel(void);
u32 func0f1688fc(void);
u32 func0f168b4c(void);
u32 func0f168f24(void);