Added StreamlineSpoofing and activeFgInput != FGInput::DLSSG check for streamline hooks

This commit is contained in:
cdozdil
2026-03-12 23:45:56 +03:00
parent 2c0758ffd0
commit d4dfe5f77b
+18
View File
@@ -1033,6 +1033,9 @@ void StreamlineHooks::unhookInterposer()
// Call it just after sl.interposer's load or if sl.interposer is already loaded
void StreamlineHooks::hookInterposer(HMODULE slInterposer)
{
if (!Config::Instance()->StreamlineSpoofing.value_or_default() && State::Instance().activeFgInput != FGInput::DLSSG)
return;
LOG_FUNC();
if (!slInterposer)
@@ -1170,6 +1173,9 @@ void StreamlineHooks::unhookDlss()
void StreamlineHooks::hookDlss(HMODULE slDlss)
{
if (!Config::Instance()->StreamlineSpoofing.value_or_default() && State::Instance().activeFgInput != FGInput::DLSSG)
return;
LOG_FUNC();
if (!slDlss)
@@ -1216,6 +1222,9 @@ void StreamlineHooks::unhookDlssg()
void StreamlineHooks::hookDlssg(HMODULE slDlssg)
{
if (!Config::Instance()->StreamlineSpoofing.value_or_default() && State::Instance().activeFgInput != FGInput::DLSSG)
return;
LOG_FUNC();
if (!slDlssg)
@@ -1262,6 +1271,9 @@ void StreamlineHooks::unhookReflex()
void StreamlineHooks::hookReflex(HMODULE slReflex)
{
if (!Config::Instance()->StreamlineSpoofing.value_or_default() && State::Instance().activeFgInput != FGInput::DLSSG)
return;
LOG_FUNC();
if (!slReflex)
@@ -1308,6 +1320,9 @@ void StreamlineHooks::unhookPcl()
void StreamlineHooks::hookPcl(HMODULE slPcl)
{
if (!Config::Instance()->StreamlineSpoofing.value_or_default() && State::Instance().activeFgInput != FGInput::DLSSG)
return;
LOG_FUNC();
if (!slPcl)
@@ -1357,6 +1372,9 @@ void StreamlineHooks::unhookCommon()
void StreamlineHooks::hookCommon(HMODULE slCommon)
{
if (!Config::Instance()->StreamlineSpoofing.value_or_default() && State::Instance().activeFgInput != FGInput::DLSSG)
return;
LOG_FUNC();
if (!slCommon)