From 7e082dab48a0a282b25d0c4d03713e94de36ffd8 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Fri, 20 Sep 2024 20:11:44 +0200 Subject: [PATCH] More logging --- src/sample/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/sample/main.cpp b/src/sample/main.cpp index 818040d..8e01d03 100644 --- a/src/sample/main.cpp +++ b/src/sample/main.cpp @@ -53,9 +53,11 @@ namespace } catch (...) { - printf("Emulation failed at: 0x%llX\n", win_emu.emu().read_instruction_pointer()); + win_emu.logger.print(color::red, "Emulation failed at: 0x%llX\n", win_emu.emu().read_instruction_pointer()); throw; } + + win_emu.logger.print(color::red, "Emulation terminated!"); } void run(std::string_view application)