From 0dd1e8e510fdcaf5c6e960a7d33980bc7925fe73 Mon Sep 17 00:00:00 2001 From: cdozdil Date: Thu, 23 Jan 2025 00:12:55 +0300 Subject: [PATCH] disable o_ffxFSR3GetInterfaceDX12 --- OptiScaler/inputs/FSR3_Dx12.cpp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/OptiScaler/inputs/FSR3_Dx12.cpp b/OptiScaler/inputs/FSR3_Dx12.cpp index 3ca02028..6b647be0 100644 --- a/OptiScaler/inputs/FSR3_Dx12.cpp +++ b/OptiScaler/inputs/FSR3_Dx12.cpp @@ -410,15 +410,15 @@ void HookFSR3ExeInputs() LOG_DEBUG("ffxFsr3UpscalerGetRenderResolutionFromQualityMode_Dx12: {:X}", (size_t)o_ffxFsr3UpscalerGetRenderResolutionFromQualityMode_Dx12); } - if (o_ffxFSR3GetInterfaceDX12 == nullptr) - { - o_ffxFSR3GetInterfaceDX12 = (PFN_ffxFSR3GetInterfaceDX12)DetourFindFunction(exeName.c_str(), "ffxGetInterfaceDX12"); + //if (o_ffxFSR3GetInterfaceDX12 == nullptr) + //{ + // o_ffxFSR3GetInterfaceDX12 = (PFN_ffxFSR3GetInterfaceDX12)DetourFindFunction(exeName.c_str(), "ffxGetInterfaceDX12"); - if (o_ffxFSR3GetInterfaceDX12 != nullptr) - DetourAttach(&(PVOID&)o_ffxFSR3GetInterfaceDX12, hk_ffxFsr3GetInterfaceDX12); + // if (o_ffxFSR3GetInterfaceDX12 != nullptr) + // DetourAttach(&(PVOID&)o_ffxFSR3GetInterfaceDX12, hk_ffxFsr3GetInterfaceDX12); - LOG_DEBUG("ffxGetInterfaceDX12: {:X}", (size_t)o_ffxFSR3GetInterfaceDX12); - } + // LOG_DEBUG("ffxGetInterfaceDX12: {:X}", (size_t)o_ffxFSR3GetInterfaceDX12); + //} DetourTransactionCommit(); @@ -494,6 +494,8 @@ void HookFSR3Dx12Inputs(HMODULE module) { LOG_INFO("Trying to hook FSR3 methods"); + return; + if (module != nullptr) { DetourTransactionBegin();