Remove "Adblock"

This commit is contained in:
Silent 2024-05-15 17:27:54 +02:00
parent 4732a06003
commit 6ee676400b
No known key found for this signature in database
GPG key ID: AE53149BB0C45AF1
5 changed files with 0 additions and 36 deletions

View file

@ -11,5 +11,3 @@
#include "Utils/MemoryMgr.h"
#include "Utils/MemoryMgr.GTA.h"
#include "Utils/Patterns.h"
#define DISABLE_FLA_DONATION_WINDOW 0

View file

@ -1140,16 +1140,6 @@ void Patch_III_10(uint32_t width, uint32_t height)
// Fixed crash related to autopilot timing calculations
InjectHook(0x4139B2, AutoPilotTimerFix_III, HookType::Jump);
// Adblocker
#if DISABLE_FLA_DONATION_WINDOW
if ( *(DWORD*)0x582749 != 0x006A026A )
{
Patch<DWORD>(0x582749, 0x006A026A);
Patch<WORD>(0x58274D, 0x006A);
}
#endif
Common::Patches::DDraw_III_10( width, height, aNoDesktopMode );
}

View file

@ -3681,18 +3681,6 @@ BOOL InjectDelayedPatches_10()
Nop( 0x4C9239+9, 1 );
}
// Adblocker
#if DISABLE_FLA_DONATION_WINDOW
if ( moduleList.Get(L"$fastman92limitAdjuster") != nullptr )
{
if ( *(DWORD*)0x748736 != 0xE8186A53 )
{
Patch<DWORD>(0x748736, 0xE8186A53);
InjectHook(AddressByRegion_10<int>(0x748739), 0x619B60);
}
}
#endif
if ( *(DWORD*)0x4065BB == 0x3B0BE1C1 )
{
// Handle IMGs bigger than 4GB

View file

@ -34,8 +34,6 @@ RwObject* GetFirstObject(RwFrame* pFrame);
extern unsigned char& nGameClockDays;
extern unsigned char& nGameClockMonths;
#define DISABLE_FLA_DONATION_WINDOW 0
#ifdef _DEBUG
#define MEM_VALIDATORS 1
#else

View file

@ -988,16 +988,6 @@ void Patch_VC_10(uint32_t width, uint32_t height)
// Fixed crash related to autopilot timing calculations
InjectHook(0x418FAE, AutoPilotTimerFix_VC, HookType::Jump);
// Adblocker
#if DISABLE_FLA_DONATION_WINDOW
if ( *(DWORD*)0x5FFAE9 != 0x006A026A )
{
Patch<DWORD>(0x5FFAE9, 0x006A026A);
Patch<WORD>(0x5FFAED, 0x006A);
}
#endif
Common::Patches::DDraw_VC_10( width, height, aNoDesktopMode );
}