Skip to content

Commit

Permalink
Readd wrong cutted hook
Browse files Browse the repository at this point in the history
  • Loading branch information
llde committed Mar 29, 2024
1 parent ca2ed26 commit 8b7b826
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion TESReloaded/Core/Hooks/Oblivion/Hooks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion TESReloaded/Core/Hooks/Oblivion/ShaderIO.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8b7b826

Please sign in to comment.