Decompile graphics group loading function

This commit is contained in:
Marcus Huderle
2020-08-12 19:55:11 -05:00
parent 37d1781f51
commit 4c0217a782
37 changed files with 185 additions and 223 deletions
+3 -3
View File
@@ -2,7 +2,7 @@
#include "entity.h"
#include "screen.h"
extern void sub_0801D7EC(u32);
extern void LoadGfxGroup(u32);
extern void sub_08056250(void);
extern void sub_080570B8(Entity*);
void sub_080570F8(void);
@@ -23,7 +23,7 @@ void Manager1(Entity *this)
bVar1 = gUnk_08107C40[((u8*)&this->field_0x20)[1]];
if ((bVar1 != 0) && (*(u8 *)&this->field_0x20 != bVar1)) {
((u8*)&this->field_0x20)[0] = bVar1;
sub_0801D7EC(bVar1);
LoadGfxGroup(bVar1);
}
}
@@ -31,7 +31,7 @@ void sub_080570B8(Entity *this)
{
u8 *pbVar1;
sub_0801D7EC(((u8 *)&this->field_0x20)[0]);
LoadGfxGroup(((u8 *)&this->field_0x20)[0]);
this->height.WORD = 0;
pbVar1 = ((u8 *)&this->field_0x20 + 1);
if (*pbVar1 == 3) {