Mac error box investigation
This commit is contained in:
parent
ab0749cad4
commit
06faf1cab2
|
@ -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
|
||||
//
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue