From 3bca88bd7209106a9c4442836a31b7ea8f18db2b Mon Sep 17 00:00:00 2001 From: rebtd7 <59185507+rebtd7@users.noreply.github.com> Date: Sun, 21 Mar 2021 11:08:03 -0300 Subject: [PATCH] Add ReShade support;' add instructions to use it --- README.md | 7 +++++++ d3d9ex/Wrapper.h | 9 ++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 98f0183..4142e51 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,13 @@ You may wish to patch the games to allow them to access more than 4GB of RAM. Th ## FF13-2: * Patch ```ffxiii2img.exe``` (you can use https://ntcore.com/?page_id=371) +# Usage with Reshade + +## Regular Direct3D9 users: +* Rename ReShade's ```d3d9.dll``` to ```ReShade32.dll```, keep FF13Fix as ```d3d9.dll``` +## DXVK users: +* Install ReShade targeting Vulkan; enable it globally + # Reporting issues * Please specify what game are you talking about, which mods are you using (dxvk?) post system specs, and post FF13Fix.log * Add a save file and steps to reproduce the issue if possible diff --git a/d3d9ex/Wrapper.h b/d3d9ex/Wrapper.h index a8fab66..784a3f0 100644 --- a/d3d9ex/Wrapper.h +++ b/d3d9ex/Wrapper.h @@ -80,7 +80,14 @@ public: D3D9DLL() { - WrapperLoad("dxvk.dll", false, false) ? m_isdxvk = true : WrapperLoad("d3d9.dll"); + m_isdxvk = WrapperLoad("dxvk.dll", false, false); + + if (!m_isdxvk) { + const bool isreshade = WrapperLoad("ReShade32.dll", false, false); + if (!isreshade) { + WrapperLoad("d3d9.dll"); + } + } StoreAddress(&Direct3DCreate9, "Direct3DCreate9"); StoreAddress(&Direct3DCreate9Ex, "Direct3DCreate9Ex");