From cab60502f3eb5b27969a0b7629a95b4df619ca2d Mon Sep 17 00:00:00 2001 From: Silent Date: Tue, 26 Sep 2017 22:21:52 +0200 Subject: [PATCH] Removed censorship - III/VC --- SilentPatch/Common.cpp | 13 ++++++++++++- SilentPatchIII/SilentPatchIII.cpp | 7 +++++++ SilentPatchVC/SilentPatchVC.cpp | 7 +++++++ 3 files changed, 26 insertions(+), 1 deletion(-) diff --git a/SilentPatch/Common.cpp b/SilentPatch/Common.cpp index a28c02e..9bbd48d 100644 --- a/SilentPatch/Common.cpp +++ b/SilentPatch/Common.cpp @@ -184,7 +184,18 @@ namespace Common { { Patch( 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 } ); + } + + } } } } \ No newline at end of file diff --git a/SilentPatchIII/SilentPatchIII.cpp b/SilentPatchIII/SilentPatchIII.cpp index a76ed2a..2647559 100644 --- a/SilentPatchIII/SilentPatchIII.cpp +++ b/SilentPatchIII/SilentPatchIII.cpp @@ -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) diff --git a/SilentPatchVC/SilentPatchVC.cpp b/SilentPatchVC/SilentPatchVC.cpp index 89ea2c5..8878414 100644 --- a/SilentPatchVC/SilentPatchVC.cpp +++ b/SilentPatchVC/SilentPatchVC.cpp @@ -627,6 +627,13 @@ void Patch_VC_Common() Patch( addr.get( 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)