From 3e53325c03481a2f6cc146bb4c88c2385bfa9ebd Mon Sep 17 00:00:00 2001 From: momo5502 Date: Sat, 19 Apr 2025 08:35:50 +0200 Subject: [PATCH] Fix compilation --- src/analyzer/object_watching.hpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/analyzer/object_watching.hpp b/src/analyzer/object_watching.hpp index 79f94614..dd77c4b3 100644 --- a/src/analyzer/object_watching.hpp +++ b/src/analyzer/object_watching.hpp @@ -2,6 +2,7 @@ #include "reflect_type_info.hpp" #include +#include template emulator_hook* watch_object(windows_emulator& emu, const std::set>& modules, @@ -31,9 +32,12 @@ emulator_hook* watch_object(windows_emulator& emu, const std::setname.c_str() : ""; + const auto& type_name = i.get_type_name(); + const auto member_name = i.get_member_name(static_cast(offset)); + emu.log.print(is_main_access ? color::green : color::dark_gray, - "Object access: %s - 0x%" PRIx64 " (%s) at 0x" PRIx64 " (%s)\n", i.get_type_name().c_str(), - offset, i.get_member_name(static_cast(offset)).c_str(), rip, - mod ? mod->name.c_str() : ""); + "Object access: %s - 0x%" PRIx64 " (%s) at 0x%" PRIx64 " (%s)\n", type_name.c_str(), offset, + member_name.c_str(), rip, mod_name); }); }