mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-18 11:13:57 +00:00
Fix exit status
This commit is contained in:
@@ -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<std::u16string> parse_arguments(const std::span<const std::string_view> args)
|
||||
|
||||
Reference in New Issue
Block a user