Decompile pakRetrieveHeaderFromCache

This commit is contained in:
Ryan Dwyer
2021-09-18 22:26:37 +10:00
parent a89cff0718
commit a56d460e56
3 changed files with 35 additions and 123 deletions
+1 -1
View File
@@ -93,7 +93,7 @@ u32 pak0f11a8f4(void);
u32 pak0f11ac7c(void);
void pakWipe(s8 device, u32 start, u32 end);
void pak0f11b178(s8 device, u32 arg1, u8 *arg2);
u32 pak0f11b488(s8 device, u32 arg1, struct pakfileheader *header);
bool pakRetrieveHeaderFromCache(s8 device, s32 alignmult, struct pakfileheader *header);
s32 pakScrub(s8 device);
bool pak0f11b75c(s8 device, u32 *arg1);
s32 pak0f11b86c(s32 device, u32 uVar2, u8 *data, struct pakfileheader *header, s32 arg3);
+7 -2
View File
@@ -5020,6 +5020,11 @@ struct pakdata {
/*0x242*/ u16 pagesfree;
};
struct pakheadercache {
u32 alignmult;
u8 payload[0x20];
};
struct pak {
/*0x000*/ s32 unk000;
/*0x004*/ u32 unk004;
@@ -5063,8 +5068,8 @@ struct pak {
/*0x2bb*/ u8 unk2bb;
/*0x2bc*/ u8 unk2bc;
/*0x2bd*/ u8 unk2bd;
/*0x2be*/ u8 unk2be;
/*0x2c0*/ void *unk2c0; // pointer to something with len 0x708
/*0x2be*/ u8 headercachecount;
/*0x2c0*/ struct pakheadercache *headercache;
/*0x2c4*/ u8 *unk2c4; // len 4096
#if VERSION >= VERSION_NTSC_1_0
/*0x2c8*/ u32 unk2c8;