Attempt to decompile texLoad

This commit is contained in:
Ryan Dwyer
2022-02-14 20:22:08 +10:00
parent 78958dc83b
commit d93df41cba
11 changed files with 234 additions and 55 deletions
+1 -1
View File
@@ -254,7 +254,7 @@ extern u32 *g_LangBanks[69];
extern void *var800aabb4;
extern struct var800aabb8 *var800aabb8;
extern struct texture *g_Textures;
extern u32 var800aabc8[4];
extern struct texturething var800aabc8;
extern u8 var800aabd8[2400];
extern u32 var800ab538;
extern u8 *var800ab540;
+8 -7
View File
@@ -5,6 +5,7 @@
#include "types.h"
void func0f16e810(u32 arg0);
s32 texLoadZlib(u8 *ptr, u32 *texturenum, s32 arg2, s32 lod, struct texturething *arg4, s32 arg5);
u32 func0f16edac(void);
u32 func0f16ee58(void);
u32 func0f16eefc(void);
@@ -13,7 +14,7 @@ u32 func0f16f044(void);
u32 func0f16f0f4(void);
u32 func0f16fc8c(void);
s32 func0f16fd50(u16 *arg0, s32 arg1, s32 arg2, s32 arg3);
u32 func0f16fde4(void);
s32 texLoadNonZlib(u8 *ptr, u32 *texturenum, s32 arg2, s32 lod, struct texturething *arg4, s32 arg5);
u32 func0f1706ec(void);
u32 func0f1711b4(void);
u32 func0f171558(void);
@@ -27,13 +28,13 @@ u32 func0f172554(void);
u32 func0f1729f8(void);
u32 func0f172b5c(void);
void func0f172e70(s32 *arg0, void *arg1, s32 arg2);
u32 func0f172e8c(void);
s32 func0f172f44(s32 *arg0);
struct texloadthing *func0f172e8c(s32 texturenum, struct texturething *arg1);
s32 func0f172f44(struct texturething *arg0);
s32 func0f172f54(s32 *arg0);
void func0f172f5c(Gfx *gdl, s32 arg1, s32 arg2);
void func0f173010(u32 *texturenum, s32 arg1, s32 arg2);
void func0f173434(struct textureconfig *config, s32 arg1, s32 arg2, s32 arg3);
void func0f1734e8(u32 arg0, void *arg1);
void texLoadFromDisplayList(Gfx *gdl, struct texturething *arg1, s32 arg2);
void texLoad(u32 *texturenum, struct texturething *arg1, s32 arg2);
void texLoadFromConfigs(struct textureconfig *configs, s32 numconfigs, struct texturething *arg2, s32 arg3);
void texLoadFromTextureNum(u32 arg0, struct texturething *arg1);
void func0f173520(u8 *arg0);
s32 func0f17353c(s32 arg0);
void texturesLoadConfigs(void);
+28 -4
View File
@@ -5237,10 +5237,9 @@ struct weatherparticledata {
};
struct texture {
u8 soundsurfacetype : 4;
u8 surfacetype : 4;
u8 unk01;
u16 dataoffset;
u32 soundsurfacetype : 4;
u32 surfacetype : 4;
u32 dataoffset : 24;
u32 unk04;
};
@@ -6757,4 +6756,29 @@ struct awardmetrics {
/*0x38*/ f32 accuracyfrac;
};
struct texturething {
struct texloadthing *unk00; // void * - same as unk0c
struct texloadthing *unk04;
struct texloadthing *unk08; // texturenum
struct texloadthing *unk0c; // void * - same as unk00
};
struct texloadthing {
u16 unk00_00 : 12;
u16 unk00_0c : 4;
void *unk04;
s16 unk08;
u16 unk0a;
union {
u32 unk0c;
struct {
u32 unk0c_00 : 1;
u32 unk0c_01 : 1;
u32 unk0c_02 : 1;
u32 unk0c_03 : 1;
u32 unk0c_04 : 24;
};
};
};
#endif