PackIndex Asset: Difference between revisions
Aerosoul94 (talk | contribs) Created page with "The packindex asset exists only in Black Ops 1 and World at War. It most likely holds pack file indexes.. <source lang="cpp"> struct PackIndexEntry // 0xC { int unknown[3]; }..." |
Aerosoul94 (talk | contribs) No edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
__NOTOC__ | |||
[[Category:Assets]] | |||
[[Category:WaW]] | |||
[[Category:BO1]] | |||
The packindex asset exists only in Black Ops 1 and World at War. It most likely holds pack file indexes.. | The packindex asset exists only in Black Ops 1 and World at War. It most likely holds pack file indexes.. | ||
<source lang="cpp"> | <source lang="cpp"> | ||
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 17: | Line 24: | ||
{ | { | ||
const char *name; | const char *name; | ||
#ifdef PC | |||
PackIndexEntry *entries; // count = | PackIndexHeader header; | ||
PackIndexEntry *entries; // count = header.count | |||
#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
};