]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sys_shared.c
MSVC updated the project file, why I'm not sure, oh well...
[xonotic/darkplaces.git] / sys_shared.c
index 11f160402fd6a2f10098f04d42b74c8ae94d12e0..5b81ce0ea877c19e7fbb8eed83bbe09c50d2bdf7 100644 (file)
@@ -1,7 +1,9 @@
 
 #include "quakedef.h"
 #include <time.h>
-#ifndef WIN32
+#ifdef WIN32
+#include <direct.h>
+#else
 #include <sys/stat.h>
 #include <unistd.h>
 #include <fcntl.h>
@@ -45,7 +47,7 @@ static char qfont_table[256] = {
        'P',  'Q',  'R',  'S',  'T',  'U',  'V',  'W',
        'X',  'Y',  'Z',  '[',  '\\', ']',  '^',  '_',
        '`',  'a',  'b',  'c',  'd',  'e',  'f',  'g',
-       'h',  'i',  'j',  'k',  'l',  'm',  'n',  'o', 
+       'h',  'i',  'j',  'k',  'l',  'm',  'n',  'o',
        'p',  'q',  'r',  's',  't',  'u',  'v',  'w',
        'x',  'y',  'z',  '{',  '|',  '}',  '~',  '<'
 };
@@ -237,6 +239,9 @@ void Sys_Shared_EarlyInit(void)
 {
        Memory_Init ();
 
+       COM_InitArgv();
+       COM_InitGameType();
+
 #if defined(__linux__)
        sprintf (engineversion, "%s Linux %s", gamename, buildstring);
 #elif defined(WIN32)