mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2024-12-28 23:03:01 +05:00
Block FLA donation window
This commit is contained in:
parent
b906331d15
commit
0f91f1d3e0
2 changed files with 14 additions and 0 deletions
|
@ -2075,6 +2075,18 @@ BOOL InjectDelayedPatches_10()
|
|||
Patch<DWORD>(0x5B8EB0, 15000);
|
||||
}
|
||||
|
||||
// Adblocker
|
||||
#if DISABLE_FLA_DONATION_WINDOW
|
||||
if ( GetModuleHandle("$fastman92limitAdjuster.asi") != nullptr )
|
||||
{
|
||||
if ( *(DWORD*)0x748736 != 0xE8186A53 )
|
||||
{
|
||||
Patch<DWORD>(0x748736, 0xE8186A53);
|
||||
InjectHook(AddressByRegion_10<int>(0x748739), 0x619B60);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
return TRUE;
|
||||
|
|
|
@ -56,6 +56,8 @@ inline T random(T a, T b)
|
|||
return a + static_cast<T>(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
|
Loading…
Reference in a new issue