Difference between revisions of "PackIndex Asset"

From COD Engine Research
Jump to: navigation, search
m
 
(One intermediate revision by one user not shown)
Line 7: Line 7:
 
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 21: 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
};