Added fs4 model hooks to more possible locations

This commit is contained in:
cdozdil
2025-12-28 17:39:01 +03:00
parent ef116eda9f
commit 02a73b6098
3 changed files with 9 additions and 1 deletions
+4 -1
View File
@@ -5,7 +5,6 @@
#include "Logger.h"
#include "resource.h"
#include "DllNames.h"
#include "fsr4/FSR4Upgrade.h"
#include "proxies/Dxgi_Proxy.h"
#include <proxies/XeSS_Proxy.h>
@@ -25,6 +24,9 @@
#include "inputs/FSR3_Dx12.h"
#include "inputs/FG/FSR3_Dx12_FG.h"
#include "fsr4/FSR4Upgrade.h"
#include <fsr4/FSR4ModelSelection.h>
#include "spoofing/Vulkan_Spoofing.h"
#include <hooks/Dxgi_Hooks.h>
@@ -862,6 +864,7 @@ static void CheckWorkingMode()
if (ffxDx12SRModule != nullptr)
{
LOG_DEBUG("amd_fidelityfx_upscaler_dx12.dll already in memory");
FSR4ModelSelection::Hook(ffxDx12SRModule);
FfxApiProxy::InitFfxDx12_SR(ffxDx12SRModule);
}
+2
View File
@@ -4,6 +4,8 @@
#include "Config.h"
#include "fsr4/FSR4Upgrade.h"
#include "detours/detours.h"
#include <wincrypt.h>
+3
View File
@@ -11,6 +11,8 @@
#include <inputs/FfxApi_Dx12.h>
#include <inputs/FfxApi_Vk.h>
#include <fsr4/FSR4ModelSelection.h>
#include "ffx_api.h"
#include <detours/detours.h>
#include <ffx_framegeneration.h>
@@ -319,6 +321,7 @@ class FfxApiProxy
if (upscaling_dx12.dll != nullptr)
{
LOG_INFO("{} loaded from exe folder", wstring_to_string(dllNames[i]));
FSR4ModelSelection::Hook(upscaling_dx12.dll);
break;
}
}