added fsr inputs info

This commit is contained in:
cdozdil
2024-12-21 16:08:14 +03:00
parent ca6eda92f0
commit 947f504628
4 changed files with 19 additions and 3 deletions
+6
View File
@@ -818,6 +818,8 @@ void HookFSR2ExeInputs()
if (o_ffxGetDeviceDX12 != nullptr)
DetourAttach(&(PVOID&)o_ffxGetDeviceDX12, o_ffxGetDeviceDX12);
Config::Instance()->fsrHooks = true;
DetourTransactionCommit();
}
@@ -877,6 +879,8 @@ void HookFSR2Dx12Inputs(HMODULE module)
if (o_ffxGetDeviceDX12 != nullptr)
DetourAttach(&(PVOID&)o_ffxGetDeviceDX12, hk_ffxGetDeviceDX12);
Config::Instance()->fsrHooks = true;
DetourTransactionCommit();
}
@@ -930,6 +934,8 @@ void HookFSR2Inputs(HMODULE module)
if (o_ffxFsr2GetRenderResolutionFromQualityMode_Dx12 != nullptr)
DetourAttach(&(PVOID&)o_ffxFsr2GetRenderResolutionFromQualityMode_Dx12, ffxFsr2GetRenderResolutionFromQualityMode_Dx12);
Config::Instance()->fsrHooks = true;
DetourTransactionCommit();
}
+6
View File
@@ -443,6 +443,8 @@ void HookFSR3ExeInputs()
if (o_ffxFsr3UpscalerResourceIsNull != nullptr)
DetourAttach(&(PVOID&)o_ffxFsr3UpscalerResourceIsNull, ffxFsr3UpscalerResourceIsNull);
Config::Instance()->fsrHooks = true;
DetourTransactionCommit();
}
@@ -490,6 +492,8 @@ void HookFSR3Dx12Inputs(HMODULE module)
if (o_ffxGetFSR3ResourceDX12 != nullptr)
DetourAttach(&(PVOID&)o_ffxGetFSR3ResourceDX12, hk_ffxFsr3GetResourceDX12);
Config::Instance()->fsrHooks = true;
DetourTransactionCommit();
}
@@ -551,6 +555,8 @@ void HookFSR3Inputs(HMODULE module)
if (o_ffxFsr3UpscalerResourceIsNull != nullptr)
DetourAttach(&(PVOID&)o_ffxFsr3UpscalerResourceIsNull, ffxFsr3UpscalerResourceIsNull);
Config::Instance()->fsrHooks = true;
DetourTransactionCommit();
}
+2
View File
@@ -94,6 +94,8 @@ public:
if (_D3D12_Query != nullptr)
DetourAttach(&(PVOID&)_D3D12_Query, ffxQuery_Dx12);
Config::Instance()->fsrHooks = true;
DetourTransactionCommit();
}
+5 -3
View File
@@ -838,9 +838,11 @@ void ImGuiCommon::RenderMenu()
if (Config::Instance()->nvngxExist || Config::Instance()->libxessExist)
{
ImGui::Spacing();
ImGui::Text("Please select %s%s%s as upscaler\nfrom game options and enter the game\nto enable upscaler settings.\n",
Config::Instance()->nvngxExist ? "DLSS" : "",
Config::Instance()->nvngxExist && Config::Instance()->libxessExist ? " or " : "",
ImGui::Text("Please select %s%s%s%s%s as upscaler\nfrom game options and enter the game\nto enable upscaler settings.\n",
Config::Instance()->fsrHooks ? "FSR" : "",
Config::Instance()->fsrHooks && (Config::Instance()->nvngxExist || Config::Instance()->IsRunningOnNvidia) ? " or " : "",
(Config::Instance()->nvngxExist || Config::Instance()->IsRunningOnNvidia) ? "DLSS" : "",
((Config::Instance()->nvngxExist || Config::Instance()->IsRunningOnNvidia) || Config::Instance()->fsrHooks) && Config::Instance()->libxessExist ? " or " : "",
Config::Instance()->libxessExist ? "XeSS" : "");