FLA donation window block for III/VC

This commit is contained in:
Silent 2016-05-29 15:01:57 +02:00
parent 17020f1bc2
commit 10492cd289
3 changed files with 22 additions and 0 deletions

View file

@ -20,6 +20,8 @@
#include "MemoryMgr.h" #include "MemoryMgr.h"
#define DISABLE_FLA_DONATION_WINDOW 1
template<typename T> template<typename T>
inline T random(T a, T b) inline T random(T a, T b)

View file

@ -406,6 +406,16 @@ void Patch_III_10(const RECT& desktop)
// SHGetFolderPath on User Files // SHGetFolderPath on User Files
InjectHook(0x580BB0, GetMyDocumentsPath, PATCH_JUMP); 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) void Patch_III_11(const RECT& desktop)

View file

@ -295,6 +295,16 @@ void Patch_VC_10(const RECT& desktop)
Patch<BYTE>(0x5505FF, 0); Patch<BYTE>(0x5505FF, 0);
Patch<BYTE>(0x550603, 255); Patch<BYTE>(0x550603, 255);
Patch<BYTE>(0x550607, 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) void Patch_VC_11(const RECT& desktop)