2017-07-18 23:41:28 +00:00
|
|
|
/*
|
|
|
|
* Mr. 4th Dimention - Allen Webster
|
|
|
|
*
|
|
|
|
* 18.07.2017
|
|
|
|
*
|
2017-11-10 21:13:02 +00:00
|
|
|
* Windows fatal error message box.
|
2017-07-18 23:41:28 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
// TOP
|
|
|
|
|
|
|
|
internal void
|
2017-11-10 21:13:02 +00:00
|
|
|
system_error_box(char *msg, b32 shutdown = true){
|
2019-07-21 18:16:34 +00:00
|
|
|
//LOGF("error box: %s\n", msg);
|
2018-12-15 23:31:00 +00:00
|
|
|
MessageBox_utf8(&shared_vars.scratch, 0, (u8*)msg, (u8*)"Error", 0);
|
2017-11-10 21:13:02 +00:00
|
|
|
if (shutdown){
|
|
|
|
exit(1);
|
|
|
|
}
|
2017-07-18 23:41:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// BOTTOM
|
|
|
|
|