Difference between revisions of "PackIndex Asset"

From COD Engine Research
Jump to: navigation, search
(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]; }...")
 
 
(2 intermediate revisions by one 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 unknown[3];
+
unsigned int hash;
 +
unsigned int offset;
 +
unsigned int size;
 
};
 
};
  
struct PackIndexStruct // 0x14
+
struct PackIndexHeader // 0x14
 
{
 
{
int magic; // "PAK0"
+
unsigned int magic; // "PAK0"
int unknown1;
+
unsigned int timestamp;
int entryCount;
+
unsigned int count;
int unknown2[2];
+
unsigned int alignment;
 +
unsigned int data_start;
 
};
 
};
  
Line 17: Line 24:
 
{
 
{
 
const char *name;
 
const char *name;
PackIndexStruct struct1;
+
#ifdef PC
PackIndexEntry *entries; // count = struct1.entryCount
+
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
};