Don't hook OptiScaler's own XeFG as the game's

This commit is contained in:
Michael Robles authored and Michał Lewandowski committed 2026-10-10 16:20:12 +02:00
1 parent 7f19872942
commit 1f94ff05e0
1 file changed
+4
@@ -771,6 +771,10 @@ void XeFGInputs::Hook(HMODULE libxessFg)
if (State::Instance().activeFgInput != FGInput::XeFG)
{
#ifdef LOW_LATENCY_INPUTS
// OptiScaler's own XeFG isn't the game's, a game without one finds OptiScaler's copy by name
if (libxessFg == XeFGProxy::Module())
return;
// One library, its trampoline is kept in the table
if (_nativeHooks[0].target == nullptr)
{