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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user