forked from Ports/perfect_dark
Decompile func0f090520 and rename if_alarm_inactive back to cmd003b because the name was wrong
This commit is contained in:
1 parent
1fbd8ec44e
commit
1ba94cabc2
8 files changed
+11
-25
No files matched your search
@@ -77,7 +77,7 @@ bool (*g_CommandPointers[])(void) = {
|
||||
/*0x0038*/ aiIfRandomGreaterThan,
|
||||
/*0x0039*/ aiIfCanHearAlarm,
|
||||
/*0x003a*/ aiIfAlarmActive,
|
||||
/*0x003b*/ aiIfAlarmInactive,
|
||||
/*0x003b*/ ai003b,
|
||||
/*0x003c*/ ai003c,
|
||||
/*0x003d*/ aiIfSawInjury,
|
||||
/*0x003e*/ aiIfSawDeath,
|
||||
|
||||
@@ -1280,7 +1280,7 @@ bool aiIfAlarmActive(void)
|
||||
/**
|
||||
* @cmd 003b
|
||||
*/
|
||||
bool aiIfAlarmInactive(void)
|
||||
bool ai003b(void)
|
||||
{
|
||||
if (func0f090520()) {
|
||||
u8 *cmd = g_Vars.ailist + g_Vars.aioffset;
|
||||
|
||||
@@ -18,7 +18,7 @@ s32 g_AlarmTimer = 0;
|
||||
s32 g_AlarmAudioHandle = 0;
|
||||
f32 g_AlarmSpeakerWeight = 64;
|
||||
f32 g_AlarmSpeakerDirection = 1;
|
||||
u32 var800698e4 = 0x00000000;
|
||||
f32 var800698e4 = 0;
|
||||
u32 var800698e8 = 0x00000000;
|
||||
u32 var800698ec = 0x00000000;
|
||||
u32 var800698f0 = 0x00000000;
|
||||
|
||||
+4
-15
@@ -47558,21 +47558,10 @@ glabel func0f0904e0
|
||||
/* f09051c: 00000000 */ sll $zero,$zero,0x0
|
||||
);
|
||||
|
||||
GLOBAL_ASM(
|
||||
glabel func0f090520
|
||||
/* f090520: 3c018007 */ lui $at,0x8007
|
||||
/* f090524: c42698e4 */ lwc1 $f6,-0x671c($at)
|
||||
/* f090528: 44802000 */ mtc1 $zero,$f4
|
||||
/* f09052c: 00001025 */ or $v0,$zero,$zero
|
||||
/* f090530: 4606203c */ c.lt.s $f4,$f6
|
||||
/* f090534: 00000000 */ sll $zero,$zero,0x0
|
||||
/* f090538: 45000002 */ bc1f .L0f090544
|
||||
/* f09053c: 00000000 */ sll $zero,$zero,0x0
|
||||
/* f090540: 24020001 */ addiu $v0,$zero,0x1
|
||||
.L0f090544:
|
||||
/* f090544: 03e00008 */ jr $ra
|
||||
/* f090548: 00000000 */ sll $zero,$zero,0x0
|
||||
);
|
||||
bool func0f090520(void)
|
||||
{
|
||||
return var800698e4 > 0;
|
||||
}
|
||||
|
||||
GLOBAL_ASM(
|
||||
glabel func0f09054c
|
||||
|
||||
Reference in new issue
Block a user