diff --git a/SilentPatch/StdAfx.h b/SilentPatch/StdAfx.h index 44e1f69..e86f6ca 100644 --- a/SilentPatch/StdAfx.h +++ b/SilentPatch/StdAfx.h @@ -20,6 +20,8 @@ #include "MemoryMgr.h" +#define DISABLE_FLA_DONATION_WINDOW 1 + template inline T random(T a, T b) diff --git a/SilentPatchIII/SilentPatchIII.cpp b/SilentPatchIII/SilentPatchIII.cpp index 29cb108..feb3f2a 100644 --- a/SilentPatchIII/SilentPatchIII.cpp +++ b/SilentPatchIII/SilentPatchIII.cpp @@ -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(0x582749, 0x006A026A); + Patch(0x58274D, 0x006A); + } +#endif } void Patch_III_11(const RECT& desktop) diff --git a/SilentPatchVC/SilentPatchVC.cpp b/SilentPatchVC/SilentPatchVC.cpp index 2800c37..966e8a0 100644 --- a/SilentPatchVC/SilentPatchVC.cpp +++ b/SilentPatchVC/SilentPatchVC.cpp @@ -295,6 +295,16 @@ void Patch_VC_10(const RECT& desktop) Patch(0x5505FF, 0); Patch(0x550603, 255); Patch(0x550607, 255); + + + // Adblocker +#if DISABLE_FLA_DONATION_WINDOW + if ( *(DWORD*)0x5FFAE9 != 0x006A026A ) + { + Patch(0x5FFAE9, 0x006A026A); + Patch(0x5FFAED, 0x006A); + } +#endif } void Patch_VC_11(const RECT& desktop)