mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-19 05:16:01 +01:00
Merge branch 'master' into feat/renderers-cleanup
This commit is contained in:
@@ -404,7 +404,9 @@ void write_report()
|
||||
std::swprintf(message, std::size(message), L"The simulator has crashed.\n\nIts memory dump could not be written (error %lu), the description of the crash is in:\n%ls_info.txt",
|
||||
static_cast<unsigned long>(data.error), base);
|
||||
}
|
||||
::MessageBoxW(nullptr, message, L"MaSzyna", MB_ICONERROR | MB_OK | MB_TOPMOST | MB_SETFOREGROUND);
|
||||
// in test mode nobody is there to close the box, and the run would wait for it until killed
|
||||
if (false == Global.test.enabled)
|
||||
::MessageBoxW(nullptr, message, L"MaSzyna", MB_ICONERROR | MB_OK | MB_TOPMOST | MB_SETFOREGROUND);
|
||||
::SetEvent(report_done);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user