Decompile mpInitSimulants

This commit is contained in:
Ryan Dwyer
2020-02-20 17:24:42 +10:00
parent 1d190dc336
commit 6fa10d2754
40 changed files with 50 additions and 81 deletions
+1 -1
View File
@@ -16590,7 +16590,7 @@ glabel func0f03cd24
/* f03cd60: a080000c */ sb $zero,0xc($a0)
/* f03cd64: 24050001 */ addiu $a1,$zero,0x1
/* f03cd68: afa40020 */ sw $a0,0x20($sp)
/* f03cd6c: 0fc6417c */ jal func0f1905f0
/* f03cd6c: 0fc6417c */ jal mpInitSimulant
/* f03cd70: afa6001c */ sw $a2,0x1c($sp)
/* f03cd74: 8fa40020 */ lw $a0,0x20($sp)
/* f03cd78: 1000003d */ beqz $zero,.L0f03ce70
+1 -1
View File
@@ -6606,7 +6606,7 @@ bool (*g_CommandPointers[])(void) = {
/*0x0182*/ aiPunchOrKick,
/*0x0183*/ aiIfTargetIsPlayer,
/*0x0184*/ ai0184,
/*0x0185*/ ai0185,
/*0x0185*/ aiMpInitSimulants,
/*0x0186*/ aiIfSoundTimer,
/*0x0187*/ aiSetTargetToEyespyIfInSight,
/*0x0188*/ aiIfLiftStationary,
+1 -1
View File
@@ -12313,7 +12313,7 @@ u16 var80087ce4[] = {
0x0000, 0x0000,
};
u32 var80087d10 = 0;
u8 var80087d10 = 0;
u32 var80087d14[] = {
0x5a000000, 0x3e86051b, 0x3f06051b, 0x02580000, 0x41200000, 0x3f32b179, 0x3eb2b179, 0x000003e8,
+9 -33
View File
@@ -419,7 +419,7 @@ glabel mpChrReset
//}
GLOBAL_ASM(
glabel func0f1905f0
glabel mpInitSimulant
/* f1905f0: 27bdffa8 */ addiu $sp,$sp,-88
/* f1905f4: afbf0024 */ sw $ra,0x24($sp)
/* f1905f8: afb00020 */ sw $s0,0x20($sp)
@@ -496,38 +496,14 @@ glabel func0f1905f0
/* f190704: 00000000 */ sll $zero,$zero,0x0
);
GLOBAL_ASM(
glabel func0f190708
/* f190708: 27bdffd8 */ addiu $sp,$sp,-40
/* f19070c: afb20020 */ sw $s2,0x20($sp)
/* f190710: 3c128008 */ lui $s2,%hi(var80087d10)
/* f190714: 26527d10 */ addiu $s2,$s2,%lo(var80087d10)
/* f190718: 924e0000 */ lbu $t6,0x0($s2)
/* f19071c: afb00018 */ sw $s0,0x18($sp)
/* f190720: afbf0024 */ sw $ra,0x24($sp)
/* f190724: afb1001c */ sw $s1,0x1c($sp)
/* f190728: 19c0000c */ blez $t6,.L0f19075c
/* f19072c: 00008025 */ or $s0,$zero,$zero
/* f190730: 3c11800b */ lui $s1,%hi(var800acc80)
/* f190734: 2631cc80 */ addiu $s1,$s1,%lo(var800acc80)
/* f190738: 8e240000 */ lw $a0,0x0($s1)
.L0f19073c:
/* f19073c: 0fc6417c */ jal func0f1905f0
/* f190740: 00002825 */ or $a1,$zero,$zero
/* f190744: 924f0000 */ lbu $t7,0x0($s2)
/* f190748: 26100001 */ addiu $s0,$s0,0x1
/* f19074c: 26310004 */ addiu $s1,$s1,0x4
/* f190750: 020f082a */ slt $at,$s0,$t7
/* f190754: 5420fff9 */ bnezl $at,.L0f19073c
/* f190758: 8e240000 */ lw $a0,0x0($s1)
.L0f19075c:
/* f19075c: 8fbf0024 */ lw $ra,0x24($sp)
/* f190760: 8fb00018 */ lw $s0,0x18($sp)
/* f190764: 8fb1001c */ lw $s1,0x1c($sp)
/* f190768: 8fb20020 */ lw $s2,0x20($sp)
/* f19076c: 03e00008 */ jr $ra
/* f190770: 27bd0028 */ addiu $sp,$sp,0x28
);
void mpInitSimulants(void)
{
s32 i;
for (i = 0; i < var80087d10; i++) {
mpInitSimulant(var800acc80[i], 0);
}
}
GLOBAL_ASM(
glabel func0f190774
+2 -2
View File
@@ -24,9 +24,9 @@
/**
* @cmd 0185
*/
bool ai0185(void)
bool aiMpInitSimulants(void)
{
func0f190708();
mpInitSimulants();
g_Vars.aioffset += 2;
return false;
}