mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-11 16:46:16 +00:00
Small fixes
This commit is contained in:
@@ -77,12 +77,13 @@ namespace
|
|||||||
const auto exit_status = win_emu.process().exit_status;
|
const auto exit_status = win_emu.process().exit_status;
|
||||||
if (!exit_status.has_value())
|
if (!exit_status.has_value())
|
||||||
{
|
{
|
||||||
win_emu.log.print(color::green, "Emulation terminated without status!\n");
|
win_emu.log.print(color::red, "Emulation terminated without status!\n");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
win_emu.log.print(color::red, "Emulation terminated with status: %X\n", *exit_status);
|
const auto success = *exit_status == STATUS_SUCCESS;
|
||||||
return *exit_status == STATUS_SUCCESS;
|
win_emu.log.print(success ? color::green : color::red, "Emulation terminated with status: %X\n", *exit_status);
|
||||||
|
return success;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<std::u16string> parse_arguments(const std::span<const std::string_view> args)
|
std::vector<std::u16string> parse_arguments(const std::span<const std::string_view> args)
|
||||||
|
|||||||
@@ -14,8 +14,11 @@ namespace
|
|||||||
|
|
||||||
std::unique_ptr<io_device> create_device(const std::u16string_view device)
|
std::unique_ptr<io_device> create_device(const std::u16string_view device)
|
||||||
{
|
{
|
||||||
if (device == u"CNG" || device == u"KsecDD" || device == u"PcwDrv" || device == u"DeviceApi\\CMApi" ||
|
if (device == u"CNG" //
|
||||||
device == u"ConDrv\\Server")
|
|| device == u"KsecDD" //
|
||||||
|
|| device == u"PcwDrv" //
|
||||||
|
|| device == u"DeviceApi\\CMApi" //
|
||||||
|
|| device == u"ConDrv\\Server")
|
||||||
{
|
{
|
||||||
return std::make_unique<dummy_device>();
|
return std::make_unique<dummy_device>();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user