mirror of
https://github.com/optiscaler/OptiScaler.git
synced 2026-08-23 22:56:52 +00:00
Kill native AL2 if SL Reflex is hooked
Not perfect but will have to do until low latency input and output are done
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
#include <proxies/Ntdll_Proxy.h>
|
||||
#include <low_latency/input/input_antilag2.h>
|
||||
#include <misc/IdentifyGpu.h>
|
||||
#include "Streamline_Hooks.h"
|
||||
|
||||
#pragma endregion
|
||||
|
||||
@@ -192,6 +193,15 @@ HRESULT STDMETHODCALLTYPE Amdxc64Hooks::hkAmdExtD3DCreateInterface(IUnknown* pOu
|
||||
|
||||
LOG_INFO("Providing the game with AL2 proxy, AL2 inputs should be avaliable");
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
#else
|
||||
else if (riid == IID_IAmdExtAntiLagApi && giveGameAl2Proxy && StreamlineHooks::isReflexHooked())
|
||||
{
|
||||
*ppvObject = nullptr;
|
||||
|
||||
LOG_INFO("Killing native AL2");
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user