FuckCarCompletely fixed in III and VC

This commit is contained in:
Silent 2017-09-12 18:01:02 +02:00
parent b002512132
commit eb27f34143
2 changed files with 22 additions and 0 deletions

View file

@ -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)

View file

@ -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)