Fix model selection with the new FFX SDK

This commit is contained in:
FakeMichau
2025-08-21 16:17:51 +02:00
committed by TheRazerMD
parent 32f4833f0b
commit 89ca9b719c
+6 -1
View File
@@ -301,7 +301,12 @@ struct AmdExtFfxApi : public IAmdExtFfxApi
}
const char* pattern = "83 F9 05 0F 87 ? ? ? ?";
o_getModelBlob = (PFN_getModelBlob) scanner::GetAddress(fsr4Module, pattern);
auto sdk2upscalingModule = KernelBaseProxy::GetModuleHandleA_()("amd_fidelityfx_upscaler_dx12.dll");
if (sdk2upscalingModule != nullptr)
o_getModelBlob = (PFN_getModelBlob) scanner::GetAddress(sdk2upscalingModule, pattern);
else
o_getModelBlob = (PFN_getModelBlob) scanner::GetAddress(fsr4Module, pattern);
if (o_getModelBlob)
{