From 8952f9bfe92675d29687f0b6364408c9694b5e2c Mon Sep 17 00:00:00 2001 From: Regynate <64607261+Regynate@users.noreply.github.com> Date: Thu, 13 Feb 2025 00:54:41 +0300 Subject: [PATCH] ChaosMod: Do not poison log files with hex values (#3716) --- ChaosMod/Memory/Hooks/ShaderHook.cpp | 2 +- ChaosMod/Memory/Memory.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ChaosMod/Memory/Hooks/ShaderHook.cpp b/ChaosMod/Memory/Hooks/ShaderHook.cpp index d7f72a50c..d06aac1ad 100644 --- a/ChaosMod/Memory/Hooks/ShaderHook.cpp +++ b/ChaosMod/Memory/Hooks/ShaderHook.cpp @@ -102,7 +102,7 @@ namespace Hooks } else { - LOG("Error compiling shader: Error code 0x" << std::hex << std::uppercase << compileResult); + LOG("Error compiling shader: Error code 0x" << std::hex << std::uppercase << compileResult << std::dec); if (errorMessages) { auto ptr = reinterpret_cast(errorMessages->GetBufferPointer()); diff --git a/ChaosMod/Memory/Memory.cpp b/ChaosMod/Memory/Memory.cpp index da7d75050..4e67ca168 100644 --- a/ChaosMod/Memory/Memory.cpp +++ b/ChaosMod/Memory/Memory.cpp @@ -196,7 +196,7 @@ namespace Memory return {}; auto resultAddr = reinterpret_cast(thePattern.get_first()); - DEBUG_LOG("Found pattern \"" << pattern << "\" at address 0x" << std::uppercase << std::hex << resultAddr); + DEBUG_LOG("Found pattern \"" << pattern << "\" at address 0x" << std::uppercase << std::hex << resultAddr << std::dec); return resultAddr; };