mirror of
https://github.com/optiscaler/OptiScaler.git
synced 2026-07-08 16:32:45 +00:00
Added fs4 model hooks to more possible locations
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
|
||||
#include "Config.h"
|
||||
|
||||
#include "fsr4/FSR4Upgrade.h"
|
||||
|
||||
#include "detours/detours.h"
|
||||
#include <wincrypt.h>
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user