Added a quirk for Talos 2

This commit is contained in:
cdozdil
2026-03-28 23:27:48 +03:00
parent a139b48a24
commit bcd6e2ef3e
2 changed files with 12 additions and 0 deletions
+8
View File
@@ -1213,6 +1213,9 @@ static void printQuirks(flag_set<GameQuirk>& quirks)
if (quirks & GameQuirk::DoNotPreserveFGSwapChain)
stringQuirks.push_back("Don't Preserve FG Swapchain");
if (quirks & GameQuirk::DoNotSkipResize)
stringQuirks.push_back("Don't Skip Resize");
if (quirks & GameQuirk::OldOverlayMenu)
stringQuirks.push_back("Using old overlay (draws on upscaled image)");
@@ -1387,6 +1390,11 @@ static void CheckQuirks(bool isNvidia)
Config::Instance()->FGPreserveSwapChain.set_volatile_value(false);
}
if (quirks & GameQuirk::DoNotSkipResize && !Config::Instance()->FGSkipResizeBuffers.has_value())
{
Config::Instance()->FGSkipResizeBuffers.set_volatile_value(false);
}
if (quirks & GameQuirk::OldOverlayMenu && !Config::Instance()->OverlayMenu.has_value())
{
Config::Instance()->OverlayMenu.set_volatile_value(false);
+4
View File
@@ -40,6 +40,7 @@ enum class GameQuirk : uint64_t
SpoofRegistry,
DisableFakenvapi,
DoNotPreserveFGSwapChain,
DoNotSkipResize,
OldOverlayMenu,
// Quirks that are applied deeper in code
@@ -187,6 +188,9 @@ static const QuirkEntry quirkTable[] = {
// Duet Night Abyss
QUIRK_ENTRY("em-win64-shipping.exe", GameQuirk::DontUseNtDllHooks),
// The Talos Principle 2
QUIRK_ENTRY("talos2-win64-shipping.exe", GameQuirk::DoNotPreserveFGSwapChain, GameQuirk::DoNotSkipResize),
// The Callisto Protocol
// FSR2 only, no spoof needed
QUIRK_ENTRY_UE(thecallistoprotocol, GameQuirk::DisableUseFsrInputValues, GameQuirk::DisableDxgiSpoofing,