mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-28 15:31:02 +00:00
Better exception logging
This commit is contained in:
@@ -51,6 +51,12 @@ namespace
|
|||||||
win_emu.start();
|
win_emu.start();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
catch (const std::exception& e)
|
||||||
|
{
|
||||||
|
win_emu.logger.print(color::red, "Emulation failed at: 0x%llX - %s\n",
|
||||||
|
win_emu.emu().read_instruction_pointer(), e.what());
|
||||||
|
throw;
|
||||||
|
}
|
||||||
catch (...)
|
catch (...)
|
||||||
{
|
{
|
||||||
win_emu.logger.print(color::red, "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());
|
||||||
|
|||||||
Reference in New Issue
Block a user