revert old patches cuz game is crashing
This commit is contained in:
parent
b575e7c04c
commit
b818a2bfd8
@ -247,8 +247,13 @@ static InitFunction Wmmt5Func([]()
|
|||||||
//Load banapass emu
|
//Load banapass emu
|
||||||
LoadLibraryA(".\\openBanaW5p.dll");
|
LoadLibraryA(".\\openBanaW5p.dll");
|
||||||
|
|
||||||
injector::WriteMemory<uint8_t>(hook::get_pattern("85 C9 0F 94 C0 84 C0 0F 94 C0 84 C0 75 ? 40 32 F6 EB ?", 0x15), 0, true); //patches out dongle error2
|
//restore old patches
|
||||||
injector::MakeNOP(hook::get_pattern("83 C0 FD 83 F8 01 76 ? 49 8D ? ? ? ? 00 00"), 6);
|
injector::WriteMemory<uint8_t>(hook::get_pattern("0F 94 C0 84 C0 0F 94 C0 84 C0 75 05 45 32 ? EB", 0x13), 0, true);
|
||||||
|
injector::MakeNOP(hook::get_pattern("83 C0 FD 83 F8 01 0F 87 B4 00 00 00", 6), 6);
|
||||||
|
injector::WriteMemory<uint8_t>(hook::get_pattern("83 FA 04 0F 8C 1E 01 00 00 4C 89 44 24 18 4C 89 4C 24 20", 2), 0, true);
|
||||||
|
injector::MakeNOP(hook::get_pattern("45 33 C0 BA 65 09 00 00 48 8D 4D B0 E8 ? ? ? ? 48 8B 08", 12), 5);
|
||||||
|
auto location = hook::get_pattern<char>("48 83 EC 28 33 D2 B9 70 00 02 00 E8 ? ? ? ? 85 C0 79 06");
|
||||||
|
injector::WriteMemory<uint8_t>(location + 0x12, 0xEB, true);
|
||||||
|
|
||||||
// Skip weird camera init that stucks entire pc on certain brands. TESTED ONLY ON 05!!!!
|
// Skip weird camera init that stucks entire pc on certain brands. TESTED ONLY ON 05!!!!
|
||||||
if (ToBool(config["General"]["WhiteScreenFix"]))
|
if (ToBool(config["General"]["WhiteScreenFix"]))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user