]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sys_unix.c
prvm_execprogram: Polish pass over error messages
[xonotic/darkplaces.git] / sys_unix.c
index 70e4bd560078da876e16a345aac72a3b54c87be9..031c55d8d9353dbb0f153928e5d100256efe6b4a 100644 (file)
@@ -12,7 +12,7 @@
 
 #include <signal.h>
 
-#include "quakedef.h"
+#include "darkplaces.h"
 
 sys_t sys;
 
@@ -154,16 +154,20 @@ int main (int argc, char **argv)
        Sys_ProvideSelfFD();
 
        // COMMANDLINEOPTION: sdl: -noterminal disables console output on stdout
-       if(COM_CheckParm("-noterminal"))
+       if(Sys_CheckParm("-noterminal"))
                sys.outfd = -1;
        // COMMANDLINEOPTION: sdl: -stderr moves console output to stderr
-       else if(COM_CheckParm("-stderr"))
+       else if(Sys_CheckParm("-stderr"))
                sys.outfd = 2;
        else
                sys.outfd = 1;
 #ifndef WIN32
        fcntl(0, F_SETFL, fcntl (0, F_GETFL, 0) | O_NONBLOCK);
 #endif
+
+       // used by everything
+       Memory_Init();
+
        Host_Main();
 
        Sys_Quit(0);
@@ -171,7 +175,7 @@ int main (int argc, char **argv)
        return 0;
 }
 
-qboolean sys_supportsdlgetticks = false;
+qbool sys_supportsdlgetticks = false;
 unsigned int Sys_SDL_GetTicks (void)
 {
        Sys_Error("Called Sys_SDL_GetTicks on non-SDL target");