Decompile filelistGetPerfectHeadTexture

This commit is contained in:
Ryan Dwyer
2021-09-15 00:00:00 +10:00
parent a665b351a4
commit 4a04b4276b
6 changed files with 93 additions and 132 deletions
+1 -1
View File
@@ -85,7 +85,7 @@ u32 func0f14fbfc(void);
u32 func0f14fdb0(void);
u32 func0f14ff94(void);
u32 func0f150068(void);
u32 func0f15015c(void);
s32 func0f15015c(s32 arg0, s32 arg1, u8 *arg2);
void func0f1507b4(s32 arg0, struct maybesavelocation_2d8 *arg1);
extern const char var7f1b6050[];
+1 -1
View File
@@ -38,7 +38,7 @@ char *filemgrMenuTextLocationName2(struct menuitem *item);
char *filemgrMenuTextSaveLocationSpaces(struct menuitem *item);
void filemgrPushSelectLocationDialog(s32 arg0, u32 filetype);
char *filemgrMenuTextFileInUseDescription(struct menuitem *item);
Gfx *filemgrRenderPerfectHeadThumbnail(Gfx *gdl, struct menuitemrenderdata *renderdata, u32 arg2, u32 arg3);
Gfx *filemgrRenderPerfectHeadThumbnail(Gfx *gdl, struct menuitemrenderdata *renderdata, s32 arg2, s32 arg3);
bool filemgrIsFileInUse(struct filelistfile *file);
s32 filemgrFileToCopyOrDeleteListMenuHandler(s32 operation, struct menuitem *item, union handlerdata *data, bool isdelete);
void filemgrPushDeleteFileDialog(s32 listnum);
-1
View File
@@ -16,6 +16,5 @@ s32 func0f110cf8(u8 filetype);
void func0f110d90(s32 index);
void filelistsTick(void);
void filelistUpdate(struct filelist *list);
struct textureconfig *func0f111460(s32 playernum, s32 arg1, s32 arg2);
#endif
+27 -12
View File
@@ -3861,6 +3861,32 @@ struct menudata_train {
u32 weaponnum;
};
struct textureconfig {
union {
u32 texturenum;
u8 *textureptr;
};
u8 width;
u8 height;
u8 level;
u8 format;
u8 depth;
u8 s;
u8 t;
};
struct menu_e68_800 {
s32 unk00;
u16 unk04;
};
struct perfectheadtexturelist {
u8 unk000[16][0x80];
struct menu_e68_800 unk800[16];
s32 lastupdated240;
struct textureconfig selectedtexture;
};
struct menu {
struct menuframe frames[10];
/*0x460*/ s16 numframes;
@@ -4491,7 +4517,7 @@ struct menu {
/*0xe5c*/ u32 unke5c;
/*0xe60*/ u32 unke60;
/*0xe64*/ u32 unke64;
/*0xe68*/ u32 unke68;
/*0xe68*/ struct perfectheadtexturelist *headtextures;
/*0xe6c*/ s8 savedevice; // 0-3 = controller pak 1-4, 4 = game pak
};
@@ -6689,17 +6715,6 @@ struct var80067e6c {
f32 value;
};
struct textureconfig {
u32 texturenum;
u8 width;
u8 height;
u8 level;
u8 format;
u8 depth;
u8 s;
u8 t;
};
struct gfxvtx {
/*0x00*/ s16 x;
/*0x02*/ s16 y;