From e3013e1182b72b332d9740684f9aab7cc5fbfbc0 Mon Sep 17 00:00:00 2001 From: FakeMichau <49685661+FakeMichau@users.noreply.github.com> Date: Wed, 12 Aug 2026 23:39:01 +0200 Subject: [PATCH] Add notifications when FG Output can't be started --- OptiScaler/hooks/FG_Hooks.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/OptiScaler/hooks/FG_Hooks.cpp b/OptiScaler/hooks/FG_Hooks.cpp index bc89b4d3..580e4f5e 100644 --- a/OptiScaler/hooks/FG_Hooks.cpp +++ b/OptiScaler/hooks/FG_Hooks.cpp @@ -52,6 +52,9 @@ static bool CheckForFGStatus() FfxApiProxy::InitFfxDx12(); if (!FfxApiProxy::IsFGReady()) { + ImGui::InsertNotification( + { ImGuiToastType::Error, 20000, "Can't init FSR FG\nAre you missing the required DLLs?" }); + LOG_DEBUG("Can't init FfxApiProxy, disabling FGOutput"); Config::Instance()->FGOutput.set_volatile_value(FGOutput::NoFG); State::Instance().activeFgOutput = Config::Instance()->FGOutput.value_or_default(); @@ -59,12 +62,18 @@ static bool CheckForFGStatus() } else if (State::Instance().activeFgOutput == FGOutput::XeFG && !XeFGProxy::InitXeFG()) { + ImGui::InsertNotification( + { ImGuiToastType::Error, 20000, "Can't init XeFG\nAre you missing the required DLLs?" }); + LOG_DEBUG("Can't init XeFGProxy, disabling FGOutput"); Config::Instance()->FGOutput.set_volatile_value(FGOutput::NoFG); State::Instance().activeFgOutput = Config::Instance()->FGOutput.value_or_default(); } else if (State::Instance().activeFgOutput == FGOutput::DLSSG && !StreamlineProxy::LoadStreamline()) { + ImGui::InsertNotification( + { ImGuiToastType::Error, 20000, "Can't init DLSSG Output\nAre you missing the streamline folder?" }); + LOG_DEBUG("Can't init StreamlineProxy, disabling FGOutput"); Config::Instance()->FGOutput.set_volatile_value(FGOutput::NoFG); State::Instance().activeFgOutput = Config::Instance()->FGOutput.value_or_default();