1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-10-17 23:16:38 +00:00

Merge branch 'maybe-fix-freeze-catcher' into 'master'

Fix Windows freeze catcher

See merge request OpenMW/openmw!2795

(cherry picked from commit afa6643c6e)

5b3e9e15 Maybe fix Windows freeze catcher
This commit is contained in:
psi29a 2023-03-04 12:42:06 +00:00 committed by Alexei Kotov
parent 0fb7d93219
commit bb3ef08ac5

View file

@ -205,6 +205,7 @@ namespace Crash
if (mFreezeAbort)
{
handleCrash();
TerminateProcess(mAppProcessHandle, 0xDEAD);
std::string message = "OpenMW appears to have frozen.\nCrash log saved to '" + std::string(mShm->mStartup.mLogFilePath) + "'.\nPlease report this to https://gitlab.com/OpenMW/openmw/issues !";
SDL_ShowSimpleMessageBox(0, "Fatal Error", message.c_str(), nullptr);