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 "../../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();
|
||||||
|
Reference in New Issue
Block a user