diff --git a/SilentPatchSA/SilentPatchSA.cpp b/SilentPatchSA/SilentPatchSA.cpp index a8282e0..fbad7eb 100644 --- a/SilentPatchSA/SilentPatchSA.cpp +++ b/SilentPatchSA/SilentPatchSA.cpp @@ -2075,6 +2075,18 @@ BOOL InjectDelayedPatches_10() Patch(0x5B8EB0, 15000); } + // Adblocker +#if DISABLE_FLA_DONATION_WINDOW + if ( GetModuleHandle("$fastman92limitAdjuster.asi") != nullptr ) + { + if ( *(DWORD*)0x748736 != 0xE8186A53 ) + { + Patch(0x748736, 0xE8186A53); + InjectHook(AddressByRegion_10(0x748739), 0x619B60); + } + } +#endif + return FALSE; } return TRUE; diff --git a/SilentPatchSA/StdAfxSA.h b/SilentPatchSA/StdAfxSA.h index 5bfad55..f6fba5a 100644 --- a/SilentPatchSA/StdAfxSA.h +++ b/SilentPatchSA/StdAfxSA.h @@ -56,6 +56,8 @@ inline T random(T a, T b) return a + static_cast(rand() * (1.0f/(RAND_MAX+1)) * (b - a)); } +#define DISABLE_FLA_DONATION_WINDOW 1 + //#define HIDE_MATERIAL //#define EXPAND_ALPHA_ENTITY_LISTS 800 //#define EXPAND_BOAT_ALPHA_ATOMIC_LISTS 400 \ No newline at end of file