TaskQueue_Shutdown();
Thread_Shutdown();
Cmd_Shutdown();
- Sys_Shutdown();
+ Sys_SDL_Shutdown();
Log_Close();
Crypto_Shutdown();
void Sys_Printf(const char *fmt, ...);
/// INFO: This is only called by Host_Shutdown so we dont need testing for recursion
-void Sys_Shutdown (void);
+void Sys_SDL_Shutdown(void);
void Sys_Quit (int returnvalue);
/*! on some build/platform combinations (such as Linux gcc with the -pg
#ifdef WIN32
#else
-#include <fcntl.h>
#include <sys/time.h>
#endif
// General routines
// =======================================================================
-void Sys_Shutdown (void)
+void Sys_SDL_Shutdown(void)
{
-#ifdef __ANDROID__
- Sys_AllowProfiling(false);
-#endif
-#ifndef WIN32
- fcntl (0, F_SETFL, fcntl (0, F_GETFL, 0) & ~O_NONBLOCK);
-#endif
- fflush(stdout);
SDL_Quit();
}
Sys_AllowProfiling(false);
host.state = host_shutdown;
Host_Shutdown();
+
+#ifdef __ANDROID__
+ Sys_AllowProfiling(false);
+#endif
+#ifndef WIN32
+ fcntl (0, F_SETFL, fcntl (0, F_GETFL, 0) & ~O_NONBLOCK);
+#endif
+ fflush(stdout);
+
exit(returnvalue);
}
#include <mmsystem.h>
#else
#include <sys/time.h>
-#include <fcntl.h>
#endif
#include "darkplaces.h"
// =======================================================================
// General routines
// =======================================================================
-void Sys_Shutdown (void)
+void Sys_SDL_Shutdown(void)
{
-#ifndef WIN32
- fcntl (0, F_SETFL, fcntl (0, F_GETFL, 0) & ~O_NONBLOCK);
-#endif
- fflush(stdout);
}
void Sys_SDL_Dialog(const char *title, const char *string)