From dc52070f124479aa37acf304658bede1e1b49b06 Mon Sep 17 00:00:00 2001 From: aemony Date: Thu, 31 Aug 2023 21:10:48 +0200 Subject: [PATCH] Fixes Serious Sam Fusion 2017 --- include/SpecialK/config.h | 1 + src/config.cpp | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/include/SpecialK/config.h b/include/SpecialK/config.h index 3ce508acf..e731e95b2 100644 --- a/include/SpecialK/config.h +++ b/include/SpecialK/config.h @@ -1353,6 +1353,7 @@ enum class SK_GAME_ID DiabloIV, // Diablo IV.exe CallOfDuty, // CoDSP.exe, CoDMP.exe (???) RatchetAndClank_RiftApart, // RiftApart.exe + SeriousSamFusion2017, // Sam2017.exe / Sam2017_Unrestricted.exe UNKNOWN_GAME = 0xffff }; diff --git a/src/config.cpp b/src/config.cpp index 27eb07335..0033e37f9 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -259,6 +259,11 @@ SK_GetCurrentGameID (void) current_game = SK_GAME_ID::FinalFantasy7Remake; } + else if ( StrStrIW ( SK_GetHostApp (), L"Sam2017" ) ) + { + current_game = SK_GAME_ID::SeriousSamFusion2017; + } + else if ( StrStrIW ( SK_GetHostApp (), L"ACValhalla" ) ) { current_game = SK_GAME_ID::AssassinsCreed_Valhalla; @@ -2991,6 +2996,11 @@ auto DeclKeybind = config.render.framerate.sync_interval_clamp = 1; break; + case SK_GAME_ID::SeriousSamFusion2017: + // Prevent crash on launch due to 'Signature verification of executable failed.' + config.window.dont_hook_wndproc = true; + break; + case SK_GAME_ID::ForzaHorizon5: { // Prevent VRR disable when using game's framerate limiter