Merge pull request #55 from rebtd7/reshade

Add ReShade support;' add instructions to use it
This commit is contained in:
rebtd7 2021-03-21 14:18:49 +00:00 committed by GitHub
commit 3f5d4d4737
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 1 deletions

View file

@ -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

View file

@ -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");