mirror of
https://github.com/optiscaler/OptiScaler.git
synced 2026-09-23 22:05:53 +00:00
Added StreamlineSpoofing and activeFgInput != FGInput::DLSSG check for streamline hooks
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user