mirror of https://github.com/OpenTTD/OpenTTD.git
Fix: [OSX] Don't show a crash/assertion message box for a GUI-less video driver.
This commit is contained in:
parent
87700bfe0e
commit
dbbd0f5ddc
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue