PackIndex Asset: Difference between revisions
Aerosoul94 (talk | contribs) mNo edit summary |
Aerosoul94 (talk | contribs) No edit summary |
||
| Line 7: | Line 7: | ||
struct PackIndexEntry // 0xC | struct PackIndexEntry // 0xC | ||
{ | { | ||
int | unsigned int hash; | ||
unsigned int offset; | |||
unsigned int size; | |||
}; | }; | ||
struct | struct PackIndexHeader // 0x14 | ||
{ | { | ||
int magic; // "PAK0" | unsigned int magic; // "PAK0" | ||
int | unsigned int timestamp; | ||
int | unsigned int count; | ||
int | unsigned int alignment; | ||
unsigned int data_start; | |||
}; | }; | ||
| Line 22: | Line 25: | ||
const char *name; | const char *name; | ||
#ifdef PC | #ifdef PC | ||
PackIndexHeader header; | |||
PackIndexEntry *entries; // count = | PackIndexEntry *entries; // count = header.count | ||
#endif | #endif | ||
}; | }; | ||
</source> | </source> | ||
Latest revision as of 09:27, 25 December 2014
The packindex asset exists only in Black Ops 1 and World at War. It most likely holds pack file indexes..
struct PackIndexEntry // 0xC
{
unsigned int hash;
unsigned int offset;
unsigned int size;
};
struct PackIndexHeader // 0x14
{
unsigned int magic; // "PAK0"
unsigned int timestamp;
unsigned int count;
unsigned int alignment;
unsigned int data_start;
};
struct PackIndex // 0x1C
{
const char *name;
#ifdef PC
PackIndexHeader header;
PackIndexEntry *entries; // count = header.count
#endif
};