]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - fs.c
vpk: Include stdint.h only
[xonotic/darkplaces.git] / fs.c
diff --git a/fs.c b/fs.c
index c4ecfe28decdef0e127e1d51374a0d1773e5b4fc..f5e67b36519bb7d39cfcc472a2a681162ef166e9 100644 (file)
--- a/fs.c
+++ b/fs.c
@@ -1566,7 +1566,7 @@ qbool FS_ChangeGameDirs(int numgamedirs, char gamedirs[][MAX_QPATH], qbool compl
                }
        }
 
-       Host_SaveConfig();
+       Host_SaveConfig(CONFIGFILENAME);
 
        fs_numgamedirs = numgamedirs;
        for (i = 0;i < fs_numgamedirs;i++)
@@ -1577,7 +1577,7 @@ qbool FS_ChangeGameDirs(int numgamedirs, char gamedirs[][MAX_QPATH], qbool compl
 
        if (cls.demoplayback)
        {
-               CL_Disconnect_f(cmd_local);
+               CL_Disconnect();
                cls.demonum = 0;
        }
 
@@ -2520,13 +2520,9 @@ with portable ones in-place, etc)
 */
 void FS_SanitizePath(char *path)
 {
-       int i, size;
-
-       for(i = 0, size = strlen(path); i < size; i++)
-       {
-               if(path[i] == '\\')
-                       path[i] = '/';
-       }
+       for (; *path; path++)
+               if (*path == '\\')
+                       *path = '/';
 }
 
 /*