mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2025-01-31 06:57:28 +05:00
FuckCarCompletely fixed in III and VC
This commit is contained in:
parent
b002512132
commit
eb27f34143
2 changed files with 22 additions and 0 deletions
|
@ -804,6 +804,15 @@ void Patch_III_Common()
|
|||
InjectHook( match.get<void>( 2 ), dest, PATCH_JUMP );
|
||||
});
|
||||
}
|
||||
|
||||
// Proper panels damage
|
||||
{
|
||||
auto addr = pattern( "C6 43 09 03 C6 43 0A 03 C6 43 0B 03" ).get_one();
|
||||
|
||||
Patch<uint8_t>( addr.get<void>( 0x1A + 1 ), 5 );
|
||||
Patch<uint8_t>( addr.get<void>( 0x23 + 1 ), 6 );
|
||||
Nop( addr.get<void>( 0x3F ), 7 );
|
||||
}
|
||||
}
|
||||
|
||||
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
|
||||
|
|
|
@ -624,6 +624,19 @@ void Patch_VC_Common()
|
|||
InjectHook( match.get<void>( 2 ), dest, PATCH_JUMP );
|
||||
});
|
||||
}
|
||||
|
||||
// Proper panels damage
|
||||
{
|
||||
auto addr = pattern( "C6 41 09 03 C6 41 0A 03 C6 41 0B 03" ).get_one();
|
||||
|
||||
// or dword ptr[ecx+14], 3300000h
|
||||
// nop
|
||||
Patch( addr.get<void>( 0x18 ), { 0x81, 0x49, 0x14, 0x00, 0x00, 0x30, 0x03 } );
|
||||
Nop( addr.get<void>( 0x18 + 7 ), 13 );
|
||||
|
||||
Nop( addr.get<void>( 0x33 ), 7 );
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
|
||||
|
|
Loading…
Reference in a new issue