mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2024-11-22 05:22:32 +01:00
III: Steam Car Colour Fix
From Sergenaur
This commit is contained in:
parent
c2aa895cbf
commit
e26e1592be
@ -1748,6 +1748,21 @@ void Patch_III_Common()
|
|||||||
auto set_render_cb = get_pattern("55 E8 ? ? ? ? 89 D8 59", 1);
|
auto set_render_cb = get_pattern("55 E8 ? ? ? ? 89 D8 59", 1);
|
||||||
Nop(set_render_cb, 5);
|
Nop(set_render_cb, 5);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Fix dark car reflections in the Steam EXE
|
||||||
|
// Based off Sergenaur's fix
|
||||||
|
{
|
||||||
|
auto reflection = pattern("A1 ? ? ? ? 85 C0 74 34");
|
||||||
|
if (reflection.count_hint(1).size() == 1) // This will only pass on the Steam EXE, and if Sergenaur's standalone fix isn't present
|
||||||
|
{
|
||||||
|
auto match = reflection.get_one();
|
||||||
|
|
||||||
|
// xor eax, eax \ nop
|
||||||
|
Patch(match.get<void>(), { 0x31, 0xC0 });
|
||||||
|
Nop(match.get<void>(2), 3);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
|
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
|
||||||
|
Loading…
Reference in New Issue
Block a user