stream mem fix for other SA EXEs

This commit is contained in:
Silent 2016-07-26 20:12:56 +02:00
parent 20550b5ed0
commit 1d8b5d4216

View file

@ -3677,6 +3677,10 @@ void Patch_SA_Steam()
Patch<DWORD>(0x76082C, 0x90C35D5F); // pop edi, pop ebp, ret
// "Streaming memory bug" fix
InjectHook(0x4CF9E8, GTARtAnimInterpolatorSetCurrentAnim);
// Fixed police scanner names
char* pScannerNames = *(char**)0x4F2B83;
strcpy(pScannerNames + (8*113), "WESTP");
@ -3951,6 +3955,10 @@ void Patch_SA_NewSteam_r2()
Patch<BYTE>(0x75AE39, 0xC3);
// "Streaming memory bug" fix
InjectHook(0x4CF1FB, GTARtAnimInterpolatorSetCurrentAnim);
// Proper aspect ratios
static const float f43 = 4.0f/3.0f, f54 = 5.0f/4.0f, f169 = 16.0f/9.0f;
Patch<const void*>(0x73424B, &f169);
@ -4130,6 +4138,10 @@ void Patch_SA_NewSteam_r2_lv()
Patch<BYTE>(0x75AD29, 0xC3);
// "Streaming memory bug" fix
InjectHook(0x4CF1DB, GTARtAnimInterpolatorSetCurrentAnim);
// Proper aspect ratios
static const float f43 = 4.0f/3.0f, f54 = 5.0f/4.0f, f169 = 16.0f/9.0f;
Patch<const void*>(0x73414B, &f169);