diff --git a/src/analyzer/main.cpp b/src/analyzer/main.cpp index b26b85a..19d366a 100644 --- a/src/analyzer/main.cpp +++ b/src/analyzer/main.cpp @@ -75,16 +75,14 @@ namespace } const auto exit_status = win_emu.process().exit_status; - if (exit_status.has_value()) - { - win_emu.log.print(color::red, "Emulation terminated with status: %X\n", *exit_status); - return false; - } - else + if (!exit_status.has_value()) { win_emu.log.print(color::green, "Emulation terminated without status!\n"); - return true; + return false; } + + win_emu.log.print(color::red, "Emulation terminated with status: %X\n", *exit_status); + return *exit_status == STATUS_SUCCESS; } std::vector parse_arguments(const std::span args)