Skip to content

Commit

Permalink
disable o_ffxFSR3GetInterfaceDX12
Browse files Browse the repository at this point in the history
  • Loading branch information
cdozdil committed Jan 22, 2025
1 parent b98c334 commit 0dd1e8e
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions OptiScaler/inputs/FSR3_Dx12.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down Expand Up @@ -494,6 +494,8 @@ void HookFSR3Dx12Inputs(HMODULE module)
{
LOG_INFO("Trying to hook FSR3 methods");

return;

if (module != nullptr)
{
DetourTransactionBegin();
Expand Down

0 comments on commit 0dd1e8e

Please sign in to comment.