Decompile aiPrint

This commit is contained in:
Ryan Dwyer 2019-11-28 18:41:34 +10:00
parent 4155d4e6b2
commit 691d7bd353
4 changed files with 20 additions and 4 deletions

View File

@ -5336,7 +5336,7 @@ bool aiChrCopyPadPreset(void)
* @cmd 00b5
*/
GLOBAL_ASM(
glabel ai00b5
glabel aiPrint
/* f054ec4: 27bdffe8 */ addiu $sp,$sp,-24
/* f054ec8: afbf0014 */ sw $ra,0x14($sp)
/* f054ecc: 0fc47bba */ jal dprint
@ -5359,6 +5359,22 @@ glabel ai00b5
/* f054f0c: 00001025 */ or $v0,$zero,$zero
);
// Mismatch because the if statement gets optimised out
//bool aiPrint(void)
//{
// u32 len;
//
// if (dprint()) {
// // empty
// }
//
// len = chraiGetCommandLength(g_Vars.ailist, g_Vars.aioffset);
//
// g_Vars.aioffset += len;
//
// return false;
//}
/**
* @cmd 0091
*/

View File

@ -183,7 +183,7 @@
/*0x00b2*/ bool aiSetPadPreset(void);
/*0x00b3*/ bool aiChrSetPadPreset(void);
/*0x00b4*/ bool aiChrCopyPadPreset(void);
/*0x00b5*/ bool ai00b5(void);
/*0x00b5*/ bool aiPrint(void);
/*0x00b6*/ bool aiRestartTimer(void);
/*0x00b7*/ bool aiResetTimer(void);
/*0x00b8*/ bool aiPauseTimer(void);

View File

@ -4,7 +4,7 @@
#include "types.h"
u32 calculatePlayerIndex(u32 playernum);
u32 dprint();
u32 dprint(char *);
u32 func0f11ecf0(void);
bool func0f11ed70(void);
bool func0f11ed78(void);

View File

@ -14313,7 +14313,7 @@ bool (*g_CommandPointers[])(void) = {
/*0x00b2*/ aiSetPadPreset,
/*0x00b3*/ aiChrSetPadPreset,
/*0x00b4*/ aiChrCopyPadPreset,
/*0x00b5*/ ai00b5,
/*0x00b5*/ aiPrint,
/*0x00b6*/ aiRestartTimer,
/*0x00b7*/ aiResetTimer,
/*0x00b8*/ aiPauseTimer,