Log fatal errors through SDL_LogError too

This commit is contained in:
Adrian Graber
2022-10-29 08:25:07 +09:00
committed by kichikuou
parent 361e51085d
commit 76a255619d
+1
View File
@@ -561,6 +561,7 @@ void NACT::fatal(const char* format, ...) {
va_list args;
va_start(args, format);
vsnprintf(buf, sizeof buf, format, args);
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Fatal Error: %s", buf);
SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, "system3", buf, g_window);
fatal_error = true;
}