[Weapon] Fix material stuff
This commit is contained in:
parent
b22ef9f6b4
commit
53c27aa425
@ -493,6 +493,11 @@ namespace Components
|
||||
// XFile header loading
|
||||
Utils::Hook(0x4159E2, FastFiles::ReadXFileHeader, HOOK_CALL).install()->quick();
|
||||
|
||||
// Replace internal ZLib
|
||||
//Utils::Hook(0x44B160, inflateInit2_, HOOK_JUMP).install()->quick();
|
||||
//Utils::Hook(0x453750, inflateEnd, HOOK_JUMP).install()->quick();
|
||||
//Utils::Hook(0x49EA00, inflate, HOOK_JUMP).install()->quick();
|
||||
|
||||
// Add custom zone paths
|
||||
FastFiles::AddZonePath("zone\\patch\\");
|
||||
FastFiles::AddZonePath("zone\\dlc\\");
|
||||
|
@ -384,8 +384,8 @@ namespace Components
|
||||
Utils::Hook::Set(0x5896AB, &unknownMaterialArray[4]);
|
||||
|
||||
// Has to do with fx, but somehow lies within the material array
|
||||
//Utils::Hook::Set(0x402069, unknownArray);
|
||||
//Utils::Hook::Set(0x4E05D9, unknownArray);
|
||||
Utils::Hook::Set(0x402069, &unknownMaterialArray[32]);
|
||||
Utils::Hook::Set(0x4E05D9, &unknownMaterialArray[32]);
|
||||
|
||||
// Patch bg_weaponDefs on the stack
|
||||
Utils::Hook::Set<DWORD>(0x40C31D, sizeof(bg_weaponDefs));
|
||||
|
Loading…
Reference in New Issue
Block a user