added fatal error dialog if windows and no console opened
@@ -31,6 +31,9 @@ static int stack_count = 0;
static bool exc_rethrow = false;
HL_PRIM void *hl_fatal_error( const char *msg, const char *file, int line ) {
+# ifdef _WIN32
+ if( GetConsoleWindow() == NULL ) MessageBoxA(NULL,msg,"Fatal Error", MB_OK | MB_ICONERROR);
+# endif
printf("%s(%d) : FATAL ERROR : %s\n",file,line,msg);
hl_debug_break();
exit(1);
