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:
ser-pounce 2023-12-31 15:24:38 +01:00 committed by GitHub
parent 456e076265
commit 315bb17310
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);