Skip to content

Instantly share code, notes, and snippets.

@Vadru93
Vadru93 / d3d8to9.cpp
Last active July 17, 2020 20:31
Fixing array sizes in thps3
#define pRANDOM_SIZE 0x32000
static BYTE pRandom[pRANDOM_SIZE] = { 0 };
#define HASH_SIZE 0x2FFD0
#define OLD_HASH_SIZE 0xBFF4
BYTE hashTable[HASH_SIZE] = { 0 };//the node hash names, each item is 12 bytes
#define OTHER_SIZE 0x140000
#define OLD_OTHER_SIZE 0x14000
//BYTE otherTable[0x50000];//unknown table, each item is 20 bytes