Ported a bindable Num5 fix to new binaries

Fixes #27
This commit is contained in:
Silent 2024-09-25 18:34:26 +02:00
parent f8d4dabdac
commit 97ebcdbbd5
No known key found for this signature in database
GPG key ID: AE53149BB0C45AF1

View file

@ -5334,9 +5334,9 @@ void Patch_SA_10(HINSTANCE hInstance)
}
// Display stats in kg's as floats (they pass a float and intend to display an integer)
Patch<const char*>( 0x55A954 + 1, "%.0fkgs" );
Patch<const char*>( 0x5593E4 + 1, "%.0fkgs" );
// Display stats in kg as floats (they pass a float and intend to display an integer)
Patch<const char*>( 0x55A954 + 1, "%.0fkg" );
Patch<const char*>( 0x5593E4 + 1, "%.0fkg" );
// Add wind animations when driving a Quadbike
@ -6455,6 +6455,15 @@ void Patch_SA_NewBinaries_Common(HINSTANCE hInstance)
TXN_CATCH();
// Bindable NUM5
try
{
auto keys_exception_list = get_pattern("3D 08 04 00 00 74", 5);
Nop(keys_exception_list, 2);
}
TXN_CATCH();
// Unlocked widescreen resolutions
{
// Assume anybody could have changed those, so bail out if ANYTHING goes wrong