From 4039f80fa42b470262238eab34cbba69f9d42ed6 Mon Sep 17 00:00:00 2001 From: KiritoDv Date: Thu, 21 Mar 2024 09:27:17 -0600 Subject: [PATCH] Added overlaps in the code as comments --- src/Companion.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Companion.cpp b/src/Companion.cpp index 96d6773..d52b40d 100644 --- a/src/Companion.cpp +++ b/src/Companion.cpp @@ -800,10 +800,11 @@ void Companion::Process() { stream << "\n"; } } else if(gap > 0x10) { - stream << "\n// WARNING: Gap detected between 0x" << std::hex << startptr << " and 0x" << end << " with size 0x" << gap << " on file " << this->gCurrentFile << "\n"; + stream << "\n// WARNING: Gap detected between 0x" << std::hex << startptr << " and 0x" << end << " with size 0x" << gap << "\n"; } if(gap < 0) { + stream << "\n// WARNING: Overlap detected between 0x" << std::hex << startptr << " and 0x" << end << "\n"; SPDLOG_WARN("Overlap detected between 0x{:X} and 0x{:X}", startptr, end); } }