No DirectPlay dependency in SA

This commit is contained in:
Silent 2015-02-21 17:54:43 +01:00
parent 8cb73db756
commit c0cff240e3

View file

@ -2569,6 +2569,10 @@ void Patch_SA_10()
// Cars drive on water cheat // Cars drive on water cheat
Patch<DWORD>(&(*(DWORD**)0x438513)[34], 0xE5FC92C3); Patch<DWORD>(&(*(DWORD**)0x438513)[34], 0xE5FC92C3);
// No DirectPlay dependency
Patch<BYTE>(AddressByRegion_10<DWORD>(0x74754A), 0xB8);
Patch<DWORD>(AddressByRegion_10<DWORD>(0x74754B), 0x900);
// Fixed police scanner names // Fixed police scanner names
char* pScannerNames = *(char**)0x4E72D4; char* pScannerNames = *(char**)0x4E72D4;
strncpy(pScannerNames + (8*113), "WESTP", 8); strncpy(pScannerNames + (8*113), "WESTP", 8);
@ -2809,6 +2813,10 @@ void Patch_SA_11()
// Cars drive on water cheat // Cars drive on water cheat
Patch<DWORD>(&(*(DWORD**)0x438593)[34], 0xE5FC92C3); Patch<DWORD>(&(*(DWORD**)0x438593)[34], 0xE5FC92C3);
// No DirectPlay dependency
Patch<BYTE>(AddressByRegion_11<DWORD>(0x747E1A), 0xB8);
Patch<DWORD>(AddressByRegion_11<DWORD>(0x747E1B), 0x900);
// Fixed police scanner names // Fixed police scanner names
char* pScannerNames = *(char**)0x4E7714; char* pScannerNames = *(char**)0x4E7714;
strncpy(pScannerNames + (8*113), "WESTP", 8); strncpy(pScannerNames + (8*113), "WESTP", 8);
@ -3028,6 +3036,10 @@ void Patch_SA_Steam()
// Cars drive on water cheat // Cars drive on water cheat
Patch<DWORD>(&(*(DWORD**)0x43B793)[34], 0xE5FC92C3); Patch<DWORD>(&(*(DWORD**)0x43B793)[34], 0xE5FC92C3);
// No DirectPlay dependency
Patch<BYTE>(0x781456, 0xB8);
Patch<DWORD>(0x781457, 0x900);
// Fixed police scanner names // Fixed police scanner names
char* pScannerNames = *(char**)0x4F2B83; char* pScannerNames = *(char**)0x4F2B83;
strncpy(pScannerNames + (8*113), "WESTP", 8); strncpy(pScannerNames + (8*113), "WESTP", 8);
@ -3174,6 +3186,9 @@ void Patch_SA_NewSteam_r2()
Patch<DWORD>(0x77A424, desktop.bottom); Patch<DWORD>(0x77A424, desktop.bottom);
Patch<const char*>(0x77A47B, aNoDesktopMode); Patch<const char*>(0x77A47B, aNoDesktopMode);
// No DirectPlay dependency
Patch<BYTE>(0x77B46E, 0xB8);
Patch<DWORD>(0x77B46F, 0x900);
// Proper aspect ratios // Proper aspect ratios
static const float f43 = 4.0f/3.0f, f54 = 5.0f/4.0f, f169 = 16.0f/9.0f; static const float f43 = 4.0f/3.0f, f54 = 5.0f/4.0f, f169 = 16.0f/9.0f;
@ -3225,6 +3240,9 @@ void Patch_SA_NewSteam_r2_lv()
Patch<DWORD>(0x77A314, desktop.bottom); Patch<DWORD>(0x77A314, desktop.bottom);
Patch<const char*>(0x77A36B, aNoDesktopMode); Patch<const char*>(0x77A36B, aNoDesktopMode);
// No DirectPlay dependency
Patch<BYTE>(0x77B35E, 0xB8);
Patch<DWORD>(0x77B35F, 0x900);
// Proper aspect ratios // Proper aspect ratios
static const float f43 = 4.0f/3.0f, f54 = 5.0f/4.0f, f169 = 16.0f/9.0f; static const float f43 = 4.0f/3.0f, f54 = 5.0f/4.0f, f169 = 16.0f/9.0f;