1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-29 01:19:11 +00:00

Fix: [OSX] Don't show a crash/assertion message box for a GUI-less video driver.

This commit is contained in:
glx
2020-01-12 19:51:11 +01:00
committed by glx22
parent 87700bfe0e
commit dbbd0f5ddc

View File

@@ -12,6 +12,7 @@
#include "../../string_func.h"
#include "../../gamelog.h"
#include "../../saveload/saveload.h"
#include "../../video/video_driver.hpp"
#include "macos.h"
#include <errno.h>
@@ -240,7 +241,9 @@ void CDECL HandleCrash(int signum)
CrashLogOSX log(signum);
log.MakeCrashLog();
log.DisplayCrashDialog();
if (VideoDriver::GetInstance() == nullptr || VideoDriver::GetInstance()->HasGUI()) {
log.DisplayCrashDialog();
}
CrashLog::AfterCrashLogCleanup();
abort();