mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2024-12-28 23:03:01 +05:00
Removed censorship - III/VC
This commit is contained in:
parent
d596ec7d1e
commit
cab60502f3
3 changed files with 26 additions and 1 deletions
|
@ -184,7 +184,18 @@ namespace Common {
|
|||
{
|
||||
Patch<uint8_t>( mem.get_first( 0x12 ), 0xEB );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// No censorships
|
||||
{
|
||||
auto addr = pattern( "83 FB 07 74 0A 83 FD 07 74 05 83 FE 07 75 15" ).count_hint(1);
|
||||
if ( addr.size() == 1 )
|
||||
{
|
||||
Patch( addr.get_first(), { 0xEB, 0x5E } );
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -815,6 +815,13 @@ void Patch_III_Common()
|
|||
// Uncomment this to get rid of "treadable hack" in CCarCtrl::PickNextNodeToChaseCar (to mirror VC behaviour)
|
||||
//InjectHook( funcAddr + 0x2A, funcAddr + 0x182, PATCH_JUMP );
|
||||
}
|
||||
|
||||
|
||||
// No censorships
|
||||
{
|
||||
auto addr = get_pattern( "8B 15 ? ? ? ? C6 05 ? ? ? ? 00 89 D0" );
|
||||
Patch( addr, { 0x83, 0xC4, 0x08, 0xC3 } ); // add esp, 8 \ retn
|
||||
}
|
||||
}
|
||||
|
||||
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
|
||||
|
|
|
@ -627,6 +627,13 @@ void Patch_VC_Common()
|
|||
Patch<uint8_t>( addr.get<void>( 0x4B + 2 ), 0xC );
|
||||
}
|
||||
|
||||
|
||||
// No censorships
|
||||
{
|
||||
auto addr = get_pattern( "8B 43 50 85 C0 8B 53 50 74 2B 83 E8 01" );
|
||||
Patch( addr, { 0x83, 0xC4, 0x08, 0x5B, 0xC3 } ); // add esp, 8 \ pop ebx \ retn
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
|
||||
|
|
Loading…
Reference in a new issue