mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-11 07:18:11 -05:00
Dump known material argument hashes
This commit is contained in:
@ -7,6 +7,20 @@ namespace IW4
|
||||
class Common
|
||||
{
|
||||
public:
|
||||
static constexpr uint32_t R_HashString(const char* string, const uint32_t hash)
|
||||
{
|
||||
const char* v2 = string; // edx@1
|
||||
char v3 = *string; // cl@1
|
||||
uint32_t result = hash;
|
||||
|
||||
for (; *v2; v3 = *v2)
|
||||
{
|
||||
++v2;
|
||||
result = 33 * result ^ (v3 | 0x20);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
static int StringTable_HashString(const char* str);
|
||||
|
||||
static PackedTexCoords Vec2PackTexCoords(const vec2_t* in);
|
||||
|
@ -1125,7 +1125,7 @@ namespace IW4
|
||||
struct CodeConstantSource
|
||||
{
|
||||
const char* name;
|
||||
unsigned char source;
|
||||
MaterialConstantSource source;
|
||||
CodeConstantSource* subtable;
|
||||
int arrayCount;
|
||||
int arrayStride;
|
||||
|
Reference in New Issue
Block a user