]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sys_shared.c
deduplicate Sys_Shutdown()
[xonotic/darkplaces.git] / sys_shared.c
index bb7ce9ce8504665c854625ef38dcd5443383f0d9..5d19784daf45354765868ebdf13581026b75caf3 100644 (file)
@@ -65,6 +65,15 @@ void Sys_Quit (int returnvalue)
                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);
 }