Added Ninja Gaiden 4 quirk

This commit is contained in:
cdozdil
2026-02-05 23:55:18 +03:00
parent 40071536b9
commit 79544be6c6
2 changed files with 15 additions and 0 deletions
+11
View File
@@ -1304,6 +1304,12 @@ static void printQuirks(flag_set<GameQuirk>& quirks)
state->detectedQuirks.push_back("Set Hudless as ValidNow");
}
if (quirks & GameQuirk::DisableResizeSkip)
{
spdlog::info("Quirk: Disable Resize Skip");
state->detectedQuirks.push_back("Disable Resize Skip");
}
return;
}
@@ -1452,6 +1458,11 @@ static void CheckQuirks()
Config::Instance()->FGHudlessValidNow.set_volatile_value(true);
}
if (quirks & GameQuirk::DisableResizeSkip && !Config::Instance()->FGXeFGSkipResizeBuffers.has_value())
{
Config::Instance()->FGXeFGSkipResizeBuffers.set_volatile_value(false);
}
// For Luma, we assume if Luma addon in game folder it's used
const auto dir = Util::ExePath().parent_path();
bool lumaDetected = false;
+4
View File
@@ -36,6 +36,7 @@ enum class GameQuirk : uint64_t
SetDepthValidNow,
SetVelocityValidNow,
SetHudlessValidNow,
DisableResizeSkip,
// Quirks that are applied deeper in code
CyberpunkHudlessFixes,
@@ -110,6 +111,9 @@ static const QuirkEntry quirkTable[] = {
// Trails in the Sky 1st Chapter
QUIRK_ENTRY("sora_1st.exe", GameQuirk::UseFsr2Dx11Inputs, GameQuirk::DisableDxgiSpoofing),
// Ninja Gaiden 4 (Steam)
QUIRK_ENTRY("ninjagaiden4-steam.exe", GameQuirk::DisableResizeSkip),
// The Last of Us Part I
QUIRK_ENTRY("tlou-i.exe", GameQuirk::AllowedFrameAhead2),
QUIRK_ENTRY("tlou-i-l.exe", GameQuirk::AllowedFrameAhead2),