From 06faf1cab2d2355cbc810c5cf775f86ff5b56fa4 Mon Sep 17 00:00:00 2001 From: Allen Webster Date: Sun, 12 Nov 2017 13:47:57 -0500 Subject: [PATCH] Mac error box investigation --- platform_mac/mac_4ed.cpp | 9 ++++++++- platform_mac/mac_error_box.cpp | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/platform_mac/mac_4ed.cpp b/platform_mac/mac_4ed.cpp index d9af2a6a..426a0d8d 100644 --- a/platform_mac/mac_4ed.cpp +++ b/platform_mac/mac_4ed.cpp @@ -235,7 +235,12 @@ Sys_CLI_Call_Sig(system_cli_call){ exit(1); } - char* argv[] = { "sh", "-c", script_name, NULL }; + char* argv[] = { + "sh", + "-c", + script_name, + 0 + }; if (execv("/bin/sh", argv) == -1){ DBG_POINT(); @@ -579,6 +584,8 @@ osx_init(){ DBG_POINT(); link_system_code(); + system_error_box("OOPS"); + // // Memory init // diff --git a/platform_mac/mac_error_box.cpp b/platform_mac/mac_error_box.cpp index 26b8b2ed..e95ba9ca 100644 --- a/platform_mac/mac_error_box.cpp +++ b/platform_mac/mac_error_box.cpp @@ -11,6 +11,7 @@ internal void system_error_box(char *msg, b32 shutdown = true){ + LOGF("error box: %s\n", msg); osx_error_dialogue(msg); if (shutdown){ exit(1);