mirror of
https://github.com/Xeeynamo/sotn-decomp.git
synced 2024-12-04 11:04:18 +00:00
Decompile ST0 func_801B0414 (#923)
Slightly ugly (including the return type), but it's the best of a bad bunch of alternatives so far.
This commit is contained in:
parent
456e076265
commit
315bb17310
@ -93,7 +93,19 @@ void func_801B0324(void) {
|
||||
g_GpuBuffers[0].disp.isrgb24 = 0;
|
||||
}
|
||||
|
||||
INCLUDE_ASM("asm/us/st/st0/nonmatchings/30030", func_801B0414);
|
||||
u16 func_801B0414(void) {
|
||||
int ret;
|
||||
|
||||
if (!(g_pads[0].tapped & PAD_START)) {
|
||||
return 0;
|
||||
}
|
||||
ret = 1;
|
||||
if (!(g_Settings.D_8003CB04 & 2) && (g_IsTimeAttackUnlocked == 0)) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
INCLUDE_ASM("asm/us/st/st0/nonmatchings/30030", func_801B0464);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user