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);