Skip to content

Commit

Permalink
Allow SteamInput to run in the background in Monster Hunter Wilds
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaldaien committed Feb 28, 2025
1 parent 8938631 commit d3b2c90
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 16 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
25.2.28
25.2.28.1
=========
+ Allow Steam Input to run in the background in Monster Hunter: Wilds

25.2.28
=======
+ Improved detection of DLSS/DLSSG version when overrides are applied using
NVIDIA App.
Expand Down
4 changes: 2 additions & 2 deletions include/SpecialK/DLL_VERSION.H
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
#define SK_YEAR 25
#define SK_MONTH 2
#define SK_DATE 28
#define SK_REV_N 0
#define SK_REV 0
#define SK_REV_N 1
#define SK_REV 1

#ifndef _A2
#define _A2(a) #a
Expand Down
20 changes: 7 additions & 13 deletions src/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3867,8 +3867,8 @@ 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;
Expand Down Expand Up @@ -5854,7 +5854,7 @@ auto DeclKeybind =
//
// DRM Workarounds
//
bool bHasCrapcomDRM = false;
bool bHasCrapcomDRM = config.steam.crapcom_mode;

// Only do DRM checks when we have a fully parsed INI file
//
Expand All @@ -5872,7 +5872,7 @@ auto DeclKeybind =
config.compatibility.disable_debug_features = true;
}

if (StrStrIW (code_sig.subject.c_str (), L"CAPCOM"))
if (StrStrIW (code_sig.subject.c_str (), L"CAPCOM") || SK_GetCurrentGameID () == SK_GAME_ID::MonsterHunterWilds)
//LR"(Private Organization, JP, 1200-01-077023, JP, Osaka, Osaka-shi, "CAPCOM CO., LTD.", "CAPCOM CO., LTD.")"
{
static constexpr
Expand All @@ -5899,8 +5899,10 @@ auto DeclKeybind =
static constexpr wchar_t *wszSteamAPIDll = L"steam_api.dll";
static constexpr wchar_t *wszKaldaienAPIDll = L"kaldaien_api/steam_api.dll";
#else
static constexpr wchar_t *wszSteamAPIDll = L"steam_api64.dll";
static constexpr wchar_t *wszKaldaienAPIDll = L"kaldaien_api/steam_api64.dll";
static const wchar_t *wszSteamAPIDll = L"steam_api64.dll";
static const wchar_t *wszKaldaienAPIDll = SK_IsCurrentGame (SK_GAME_ID::StreetFighter6) ?
L"kaldaien_api/steam_api64.dll" :
L"kaldaien_api/kaldaien_api64.dll";
#endif

// Do not use CRAPCOM DRM workaround on Steam Deck
Expand Down Expand Up @@ -5929,14 +5931,6 @@ 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 d3b2c90

Please sign in to comment.