mirror of https://github.com/OpenTTD/OpenTTD
Fix: [OSX] Don't show a crash/assertion message box for a GUI-less video driver.
parent
87700bfe0e
commit
dbbd0f5ddc
|
@ -12,6 +12,7 @@
|
||||||
#include "../../string_func.h"
|
#include "../../string_func.h"
|
||||||
#include "../../gamelog.h"
|
#include "../../gamelog.h"
|
||||||
#include "../../saveload/saveload.h"
|
#include "../../saveload/saveload.h"
|
||||||
|
#include "../../video/video_driver.hpp"
|
||||||
#include "macos.h"
|
#include "macos.h"
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
@ -240,7 +241,9 @@ void CDECL HandleCrash(int signum)
|
||||||
|
|
||||||
CrashLogOSX log(signum);
|
CrashLogOSX log(signum);
|
||||||
log.MakeCrashLog();
|
log.MakeCrashLog();
|
||||||
log.DisplayCrashDialog();
|
if (VideoDriver::GetInstance() == nullptr || VideoDriver::GetInstance()->HasGUI()) {
|
||||||
|
log.DisplayCrashDialog();
|
||||||
|
}
|
||||||
|
|
||||||
CrashLog::AfterCrashLogCleanup();
|
CrashLog::AfterCrashLogCleanup();
|
||||||
abort();
|
abort();
|
||||||
|
|
Loading…
Reference in New Issue