Attempt to decompile hudmsgCreate

This commit is contained in:
Ryan Dwyer
2020-03-18 17:10:09 +10:00
parent 29a6e491e2
commit 60956138be
12 changed files with 225 additions and 157 deletions
+15 -2
View File
@@ -558,8 +558,21 @@
#define GAILIST_INIT_SEARCH 0x002c // unused
#define GAILIST_INVINCIBLE_AND_IDLE 0x002d
#define HUDMSGFLAG_00000001 0x00000001
#define HUDMSGFLAG_00000002 0x00000002
#define HUDMSGFLAG_ONLYIFALIVE 0x1
#define HUDMSGFLAG_2 0x2
#define HUDMSGFLAG_4 0x4
#define HUDMSGFLAG_ALLOWDUPES 0x8
#define HUDMSGSTATE_FREE 0
#define HUDMSGSTATE_QUEUED 1
#define HUDMSGSTATE_ONSCREEN 5
#define HUDMSGTYPE_DEFAULT 0
#define HUDMSGTYPE_OBJECTIVECOMPLETE 1
#define HUDMSGTYPE_OBJECTIVEFAILED 2
#define HUDMSGTYPE_3 3
#define HUDMSGTYPE_4 4
#define HUDMSGTYPE_SUBTITLE 6
#define IDLEACTION_STANDING 0x01
#define IDLEACTION_SITTING_TYPING 0x02
+1 -1
View File
@@ -152,7 +152,7 @@ extern u8 g_CutsceneSubtitles;
extern s32 g_ScreenSize;
extern s32 g_ScreenRatio;
extern u8 g_ScreenSplit;
extern u32 var8007fac0;
extern s32 var8007fac0;
extern u32 var8007fac4;
extern u32 var8007facc;
extern u32 var8007fad0;
+12 -11
View File
@@ -8,24 +8,25 @@ s32 func0f0dcdbc(void);
u32 func0f0dcef4(void);
u32 func0f0dd2ac(void);
u32 func0f0dd848(void);
u32 func0f0ddb1c(void);
s32 func0f0ddb1c(u32 *arg0, u32 arg1);
void func0f0ddd44(s32 value);
void hudmsgSystemInit(void);
void hudmsgRemoveAll(void);
s32 func0f0ddeac(s32 param_1);
void hudmsgCreateViaPreset(char *text, s32 confignum);
void func0f0ddfa4(char *text, s32 confignum, s32 arg2);
void hudmsgCreateViaPresetWithColour(char *text, s32 confignum, u8 colour);
void hudmsgCreateViaStruct(char *text, s32 confignum, struct hudmessageconfig *config, s32 arg3);
s32 hudmsgGetNext(s32 refid);
void hudmsgCreateViaPreset(char *text, s32 type);
void func0f0ddfa4(char *text, s32 type, s32 arg2);
void hudmsgCreateViaPresetWithColour(char *text, s32 type, u8 colour);
void hudmsgCreateViaStruct(char *text, s32 type, struct hudmessageconfig *config, s32 arg3);
u32 func0f0de160(void);
u32 func0f0de7fc(void);
u32 hudmsgCreate(char *text, s32 confignum, u8 conf00, u8 conf01, u8 conf02,
void *conf04, void *conf08, u32 colour, u32 conf10, u8 alignh, s16 conf16,
u8 alignv, s16 conf18, s32 arg14, s32 arg15);
void func0f0de7fc(struct hudmessage *msg);
void hudmsgCreate(char *text, s32 type, s32 conf00, s32 conf01, s32 conf02,
struct hudmessagething *conf04, struct hudmessagething *conf08,
u32 textcolour, u32 shadowcolour,
u32 alignh, s32 conf16, u32 alignv, s32 conf18, s32 arg14, u32 flags);
void func0f0df364(void);
void currentPlayerUnsetFlag(u32 flag);
void currentPlayerSetFlag(u32 flag);
void hudmsgRemoveByPlayer(s32 playernum);
void hudmsgRemoveForDeadPlayer(s32 playernum);
u32 func0f0dfad0(void);
void hudmsgsReset(void);
+1 -1
View File
@@ -44,7 +44,7 @@ u32 func0f156790(void);
u32 func0f156a24(void);
u32 func0f156e48(void);
void func0f1572f8(u32 *arg0, s32 *arg1, char *label, u32 arg3, u32 arg4, u32 arg5);
u32 func0f157520(void);
void func0f157520(s32 arg0, char *arg1, char *arg2, u32 arg3, u32 arg4);
u32 func0f1577f0(void);
u32 func0f1578c8(void);
u32 func0f1579cc(void);
+1 -1
View File
@@ -627,7 +627,7 @@ extern s32 g_NumSpawnPoints;
extern u32 var8009de78;
extern u32 var8009de98;
extern u32 var8009de9c;
extern u32 var8009dea0;
extern u32 g_NextHudMessageId;
extern u32 var8009deb0;
extern char g_CheatMarqueeString[];
extern u32 var8009dfbc;
+1 -1
View File
@@ -4,7 +4,7 @@
#include "types.h"
char *strcpy(char *dest, char *src);
u32 func000131c8(void);
char *strncpy(char *dest, char *src, u32 len);
u32 strcat(char *dst, char *src);
u32 func00013274(void);
u32 func00013274(void);
+23 -114
View File
@@ -5257,12 +5257,16 @@ struct mpteaminfo {
s32 score;
};
struct hudmessagething {
s32 unk00;
};
struct hudmessageconfig {
/*0x00*/ u8 unk00;
/*0x01*/ u8 unk01;
/*0x02*/ u8 unk02;
/*0x04*/ void *unk04;
/*0x08*/ void *unk08;
/*0x04*/ struct hudmessagething *unk04;
/*0x08*/ struct hudmessagething *unk08;
/*0x0c*/ u32 colour;
/*0x10*/ u32 unk10;
/*0x14*/ u8 alignh;
@@ -5273,127 +5277,32 @@ struct hudmessageconfig {
};
struct hudmessage {
/*0x000*/ u8 active;
/*0x002*/ u16 unk002;
/*0x000*/ u8 state;
/*0x001*/ u8 unk001;
/*0x002*/ u8 unk002;
/*0x003*/ u8 unk003;
/*0x004*/ u16 unk004;
/*0x006*/ u16 unk006;
/*0x008*/ u32 unk008;
/*0x00c*/ u32 unk00c;
/*0x010*/ u32 unk010;
/*0x014*/ u32 unk014;
/*0x010*/ u32 textcolour;
/*0x014*/ u32 shadowcolour;
/*0x018*/ u32 unk018;
/*0x01c*/ u32 unk01c;
/*0x020*/ u32 unk020;
/*0x024*/ u32 unk024;
/*0x028*/ u32 unk028;
/*0x02c*/ u32 unk02c;
/*0x030*/ u32 unk030;
/*0x034*/ u32 unk034;
/*0x038*/ u32 unk038;
/*0x03c*/ u32 unk03c;
/*0x040*/ u32 unk040;
/*0x044*/ u32 unk044;
/*0x048*/ u32 unk048;
/*0x04c*/ u32 unk04c;
/*0x050*/ u32 unk050;
/*0x054*/ u32 unk054;
/*0x058*/ u32 unk058;
/*0x05c*/ u32 unk05c;
/*0x060*/ u32 unk060;
/*0x064*/ u32 unk064;
/*0x068*/ u32 unk068;
/*0x06c*/ u32 unk06c;
/*0x070*/ u32 unk070;
/*0x074*/ u32 unk074;
/*0x078*/ u32 unk078;
/*0x07c*/ u32 unk07c;
/*0x080*/ u32 unk080;
/*0x084*/ u32 unk084;
/*0x088*/ u32 unk088;
/*0x08c*/ u32 unk08c;
/*0x090*/ u32 unk090;
/*0x094*/ u32 unk094;
/*0x098*/ u32 unk098;
/*0x09c*/ u32 unk09c;
/*0x0a0*/ u32 unk0a0;
/*0x0a4*/ u32 unk0a4;
/*0x0a8*/ u32 unk0a8;
/*0x0ac*/ u32 unk0ac;
/*0x0b0*/ u32 unk0b0;
/*0x0b4*/ u32 unk0b4;
/*0x0b8*/ u32 unk0b8;
/*0x0bc*/ u32 unk0bc;
/*0x0c0*/ u32 unk0c0;
/*0x0c4*/ u32 unk0c4;
/*0x0c8*/ u32 unk0c8;
/*0x0cc*/ u32 unk0cc;
/*0x0d0*/ u32 unk0d0;
/*0x0d4*/ u32 unk0d4;
/*0x0d8*/ u32 unk0d8;
/*0x0dc*/ u32 unk0dc;
/*0x0e0*/ u32 unk0e0;
/*0x0e4*/ u32 unk0e4;
/*0x0e8*/ u32 unk0e8;
/*0x0ec*/ u32 unk0ec;
/*0x0f0*/ u32 unk0f0;
/*0x0f4*/ u32 unk0f4;
/*0x0f8*/ u32 unk0f8;
/*0x0fc*/ u32 unk0fc;
/*0x100*/ u32 unk100;
/*0x104*/ u32 unk104;
/*0x108*/ u32 unk108;
/*0x10c*/ u32 unk10c;
/*0x110*/ u32 unk110;
/*0x114*/ u32 unk114;
/*0x118*/ u32 unk118;
/*0x11c*/ u32 unk11c;
/*0x120*/ u32 unk120;
/*0x124*/ u32 unk124;
/*0x128*/ u32 unk128;
/*0x12c*/ u32 unk12c;
/*0x130*/ u32 unk130;
/*0x134*/ u32 unk134;
/*0x138*/ u32 unk138;
/*0x13c*/ u32 unk13c;
/*0x140*/ u32 unk140;
/*0x144*/ u32 unk144;
/*0x148*/ u32 unk148;
/*0x14c*/ u32 unk14c;
/*0x150*/ u32 unk150;
/*0x154*/ u32 unk154;
/*0x158*/ u32 unk158;
/*0x15c*/ u32 unk15c;
/*0x160*/ u32 unk160;
/*0x164*/ u32 unk164;
/*0x168*/ u32 unk168;
/*0x16c*/ u32 unk16c;
/*0x170*/ u32 unk170;
/*0x174*/ u32 unk174;
/*0x178*/ u32 unk178;
/*0x17c*/ u32 unk17c;
/*0x180*/ u32 unk180;
/*0x184*/ u32 unk184;
/*0x188*/ u32 unk188;
/*0x18c*/ u32 unk18c;
/*0x190*/ u32 unk190;
/*0x194*/ u32 unk194;
/*0x198*/ u32 unk198;
/*0x19c*/ u32 unk19c;
/*0x1a0*/ u32 unk1a0;
/*0x1a4*/ u32 unk1a4;
/*0x1a8*/ u32 unk1a8;
/*0x1ac*/ u32 unk1ac;
/*0x1b0*/ u32 unk1b0;
/*0x1b4*/ u32 unk1b4;
/*0x1b8*/ s32 unk1b8;
/*0x1bc*/ u32 unk1bc;
/*0x1c0*/ u32 playernum;
/*0x01c*/ u16 unk01c;
/*0x01e*/ u16 unk01e;
/*0x020*/ char text[400];
/*0x1b0*/ s32 unk1b0;
/*0x1b4*/ u32 type;
/*0x1b8*/ s32 id;
/*0x1bc*/ u32 unk1bc; // duration
/*0x1c0*/ s32 playernum;
/*0x1c4*/ u32 flags;
/*0x1c8*/ u32 unk1c8;
/*0x1c8*/ u8 alignh;
/*0x1c9*/ u8 alignv;
/*0x1cc*/ u32 unk1cc;
/*0x1d0*/ u32 unk1d0;
/*0x1d4*/ u32 unk1d4;
/*0x1d8*/ u32 unk1d8;
/*0x1d8*/ u32 hash;
};
#endif