From 8b7b826ea58a40bc10f1aa8c967d3437a55c2844 Mon Sep 17 00:00:00 2001 From: Lorenzo Ferrillo Date: Fri, 29 Mar 2024 23:54:01 +0100 Subject: [PATCH] Readd wrong cutted hook --- TESReloaded/Core/Hooks/Oblivion/Hooks.cpp | 3 ++- TESReloaded/Core/Hooks/Oblivion/ShaderIO.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/TESReloaded/Core/Hooks/Oblivion/Hooks.cpp b/TESReloaded/Core/Hooks/Oblivion/Hooks.cpp index 8bdc9749..2b82f1ee 100644 --- a/TESReloaded/Core/Hooks/Oblivion/Hooks.cpp +++ b/TESReloaded/Core/Hooks/Oblivion/Hooks.cpp @@ -216,7 +216,8 @@ void AttachHooks() { SafeWriteJump(0x00497D5A, 0x00497D63); // Unlocks antialising bar if HDR is enabled (video menu) SafeWriteJump(0x005DF8E9, 0x005DF983); // Skips antialising deactivation changing HDR (video menu) SafeWriteJump(0x006738B1, 0x00673935); // Cancels the fPlayerDeathReloadTime - + SafeWrite8(0x0040CE11, 0); // Stops to clear the depth buffer when rendering the 1st person node + *Pointers::ShaderParams::WaterHighResolution = 1; if (SettingsMain->Main.AnisotropicFilter >= 2) { diff --git a/TESReloaded/Core/Hooks/Oblivion/ShaderIO.cpp b/TESReloaded/Core/Hooks/Oblivion/ShaderIO.cpp index c2855b20..52c4e0bc 100644 --- a/TESReloaded/Core/Hooks/Oblivion/ShaderIO.cpp +++ b/TESReloaded/Core/Hooks/Oblivion/ShaderIO.cpp @@ -41,7 +41,7 @@ void __cdecl SetShaderPackageHook(int Arg1, int Arg2, UInt8 Force1XShaders, int UInt32* ShaderPackage = (UInt32*)0x00B42F48; UInt32* ShaderPackageMax = (UInt32*)0x00B42D74; - + Logger::Log("%u %u %u %u %s %u", Arg1,Arg2,Force1XShaders,Arg4, GraphicsName, Arg6); SetShaderPackage(Arg1, Arg2, Force1XShaders, Arg4, GraphicsName, Arg6); *ShaderPackage = 7; *ShaderPackageMax = 7;