mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2024-12-28 23:03:01 +05:00
FLA donation window block for III/VC
This commit is contained in:
parent
17020f1bc2
commit
10492cd289
3 changed files with 22 additions and 0 deletions
|
@ -20,6 +20,8 @@
|
|||
|
||||
#include "MemoryMgr.h"
|
||||
|
||||
#define DISABLE_FLA_DONATION_WINDOW 1
|
||||
|
||||
|
||||
template<typename T>
|
||||
inline T random(T a, T b)
|
||||
|
|
|
@ -406,6 +406,16 @@ void Patch_III_10(const RECT& desktop)
|
|||
|
||||
// SHGetFolderPath on User Files
|
||||
InjectHook(0x580BB0, GetMyDocumentsPath, PATCH_JUMP);
|
||||
|
||||
|
||||
// Adblocker
|
||||
#if DISABLE_FLA_DONATION_WINDOW
|
||||
if ( *(DWORD*)0x582749 != 0x006A026A )
|
||||
{
|
||||
Patch<DWORD>(0x582749, 0x006A026A);
|
||||
Patch<WORD>(0x58274D, 0x006A);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void Patch_III_11(const RECT& desktop)
|
||||
|
|
|
@ -295,6 +295,16 @@ void Patch_VC_10(const RECT& desktop)
|
|||
Patch<BYTE>(0x5505FF, 0);
|
||||
Patch<BYTE>(0x550603, 255);
|
||||
Patch<BYTE>(0x550607, 255);
|
||||
|
||||
|
||||
// Adblocker
|
||||
#if DISABLE_FLA_DONATION_WINDOW
|
||||
if ( *(DWORD*)0x5FFAE9 != 0x006A026A )
|
||||
{
|
||||
Patch<DWORD>(0x5FFAE9, 0x006A026A);
|
||||
Patch<WORD>(0x5FFAED, 0x006A);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void Patch_VC_11(const RECT& desktop)
|
||||
|
|
Loading…
Reference in a new issue