mirror of
https://github.com/optiscaler/OptiScaler.git
synced 2026-05-04 08:41:43 +00:00
Use DisableHudfix option for quirk
This commit is contained in:
@@ -1263,7 +1263,7 @@ static void CheckQuirks(bool isNvidia)
|
||||
|
||||
// Apply config-level quirks
|
||||
if (quirks & GameQuirk::DisableHudfix && Config::Instance()->FGInput.value_or_default() == FGInput::Upscaler)
|
||||
Config::Instance()->FGHUDFix.set_volatile_value(false);
|
||||
Config::Instance()->FGDisableHUDFix.set_volatile_value(true);
|
||||
|
||||
if (quirks & GameQuirk::DisableFSR3Inputs && !Config::Instance()->EnableFsr3Inputs.has_value())
|
||||
Config::Instance()->EnableFsr3Inputs.set_volatile_value(false);
|
||||
|
||||
@@ -3962,9 +3962,7 @@ bool MenuCommon::RenderMenu()
|
||||
if (!Config::Instance()->FGDisableHUDFix.value_or_default())
|
||||
{
|
||||
bool fgHudfix = config->FGHUDFix.value_or_default();
|
||||
bool disableHudfix = static_cast<bool>(state.gameQuirks & GameQuirk::DisableHudfix);
|
||||
|
||||
ImGui::BeginDisabled(disableHudfix);
|
||||
if (ImGui::Checkbox("HUDFix", &fgHudfix))
|
||||
{
|
||||
config->FGHUDFix = fgHudfix;
|
||||
@@ -3972,12 +3970,8 @@ bool MenuCommon::RenderMenu()
|
||||
state.ClearCapturedHudlesses = true;
|
||||
state.FGchanged = true;
|
||||
}
|
||||
ImGui::EndDisabled();
|
||||
|
||||
if (disableHudfix)
|
||||
ShowHelpMarker("HUDfix disabled due to known issues");
|
||||
else
|
||||
ShowHelpMarker("Enable HUD stability fix, might cause crashes!");
|
||||
ShowHelpMarker("Enable HUD stability fix, might cause crashes!");
|
||||
|
||||
ImGui::BeginDisabled(!config->FGHUDFix.value_or_default());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user