diff options
Diffstat (limited to 'NorthstarDLL/filesystem.h')
-rw-r--r-- | NorthstarDLL/filesystem.h | 29 |
1 files changed, 18 insertions, 11 deletions
diff --git a/NorthstarDLL/filesystem.h b/NorthstarDLL/filesystem.h index c326b419..9a22893a 100644 --- a/NorthstarDLL/filesystem.h +++ b/NorthstarDLL/filesystem.h @@ -5,25 +5,32 @@ typedef void* FileHandle_t; #pragma pack(push, 1) -struct VPKFileEntry + +// clang-format off +OFFSET_STRUCT(VPKFileEntry) { - char* directory; - char* filename; - char* extension; - unsigned char unknown[0x38]; + STRUCT_SIZE(0x44); + FIELDS(0x0, + char* directory; + char* filename; + char* extension; + ) }; +// clang-format on #pragma pack(pop) #pragma pack(push, 1) +// clang-format off struct VPKData { - unsigned char unknown[5]; - char path[255]; - unsigned char unknown2[0x134]; - int32_t numEntries; - unsigned char unknown3[12]; - VPKFileEntry* entries; + STRUCT_SIZE(0x50); + FIELDS(0x0, + char* directory; + char* filename; + char* extension; + ) }; +// clang-format on #pragma pack(pop) enum SearchPathAdd_t |