Skip to content

Commit

Permalink
Add workarounds for MonsterHunterWilds anti-tamper
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaldaien committed Feb 28, 2025
1 parent 35b8758 commit 8938631
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 7 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
25.2.27.2
25.2.28
=======
+ Improved detection of DLSS/DLSSG version when overrides are applied using
NVIDIA App.
+ Various fixes for MonsterHunterWilds anti-tamper
* Game will deliberately corrupt graphics if it detects modification.

25.2.27.2
=========
+ Fixed potential to load ReShade AddOns twice when using local injection

Expand Down
6 changes: 3 additions & 3 deletions include/SpecialK/DLL_VERSION.H
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

#define SK_YEAR 25
#define SK_MONTH 2
#define SK_DATE 27
#define SK_REV_N 2
#define SK_REV 2
#define SK_DATE 28
#define SK_REV_N 0
#define SK_REV 0

#ifndef _A2
#define _A2(a) #a
Expand Down
17 changes: 14 additions & 3 deletions src/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3867,7 +3867,10 @@ auto DeclKeybind =
break;

case SK_GAME_ID::MonsterHunterWilds:
config.steam.crapcom_mode = true;
config.window.dont_hook_wndproc = true;
config.platform.silent = true;
config.compatibility.disable_debug_features = true;
config.system.handle_crashes = false;
config.render.dstorage.enable_hooks = false;
break;

Expand Down Expand Up @@ -5916,8 +5919,8 @@ auto DeclKeybind =
wszKaldaienAPIDll, FALSE)));
}

if (! config.platform.silent )
{if(! config.steam.crapcom_mode )
if (!config.platform.silent)
{if((!config.steam.crapcom_mode) || wcscmp (config.steam.dll_path.c_str (), wszKaldaienAPIDll))
{ config.steam.auto_inject = true;
config.steam.auto_pump_callbacks = true;
config.steam.force_load_steamapi = true;
Expand All @@ -5926,6 +5929,14 @@ auto DeclKeybind =
config.steam.init_delay = -1;
config.platform.silent = false;
config.steam.dll_path = wszKaldaienAPIDll;
//SK_ImGui_CreateNotification (
//"AntiTamper.Info", SK_ImGui_Toast::Info,
// "A game restart is required to fully workaround CAPCOM's anti-tamper.",
// "Anti-Tamper Bypass",
// 300000, SK_ImGui_Toast::UseDuration |
// SK_ImGui_Toast::ShowCaption |
// SK_ImGui_Toast::ShowTitle
//);
} config.steam.crapcom_mode = true;
}else{config.steam.crapcom_mode = false;
config.steam.dll_path = L"";}
Expand Down

0 comments on commit 8938631

Please sign in to comment.