1.1 --- a/core/smn_filesystem.cpp Fri Jan 19 01:50:42 2007 +0000
1.2 +++ b/core/smn_filesystem.cpp Fri Jan 19 02:14:50 2007 +0000
1.3 @@ -49,7 +49,7 @@
1.4 }
1.5
1.6 char realpath[PLATFORM_MAX_PATH+1];
1.7 - g_LibSys.PathFormat(realpath, sizeof(realpath), "%s/%s", g_SourceMod.GetBaseDir(), path);
1.8 + g_SourceMod.BuildPath(Path_Game, realpath, sizeof(realpath), "%s", path);
1.9
1.10 IDirectory *pDir = g_LibSys.OpenDirectory(realpath);
1.11 if (!pDir)
1.12 @@ -127,7 +127,7 @@
1.13 }
1.14
1.15 char realpath[PLATFORM_MAX_PATH+1];
1.16 - g_LibSys.PathFormat(realpath, sizeof(realpath), "%s/%s", g_SourceMod.GetBaseDir(), name);
1.17 + g_SourceMod.BuildPath(Path_SM, realpath, sizeof(realpath), "%s", name);
1.18
1.19 FILE *pFile = fopen(realpath, mode);
1.20 if (!pFile)
1.21 @@ -149,7 +149,7 @@
1.22 }
1.23
1.24 char realpath[PLATFORM_MAX_PATH+1];
1.25 - g_LibSys.PathFormat(realpath, sizeof(realpath), "%s/%s", g_SourceMod.GetBaseDir(), name);
1.26 + g_SourceMod.BuildPath(Path_SM, realpath, sizeof(realpath), "%s", name);
1.27
1.28 return (unlink(realpath)) ? 0 : 1;
1.29 }
1.30 @@ -253,7 +253,7 @@
1.31 }
1.32
1.33 char realpath[PLATFORM_MAX_PATH+1];
1.34 - g_LibSys.PathFormat(realpath, sizeof(realpath), "%s/%s", g_SourceMod.GetBaseDir(), name);
1.35 + g_SourceMod.BuildPath(Path_SM, realpath, sizeof(realpath), "%s", name);
1.36 #ifdef PLATFORM_WINDOWS
1.37 struct _stat s;
1.38 if (_stat(realpath, &s) != 0)
1.39 @@ -295,9 +295,9 @@
1.40 }
1.41
1.42 char new_realpath[PLATFORM_MAX_PATH+1];
1.43 - g_LibSys.PathFormat(new_realpath, sizeof(new_realpath), "%s/%s", g_SourceMod.GetBaseDir(), newpath);
1.44 + g_SourceMod.BuildPath(Path_SM, new_realpath, sizeof(new_realpath), "%s", newpath);
1.45 char old_realpath[PLATFORM_MAX_PATH+1];
1.46 - g_LibSys.PathFormat(old_realpath, sizeof(old_realpath), "%s/%s", g_SourceMod.GetBaseDir(), oldpath);
1.47 + g_SourceMod.BuildPath(Path_SM, old_realpath, sizeof(old_realpath), "%s", oldpath);
1.48
1.49 #ifdef PLATFORM_WINDOWS
1.50 return (MoveFileA(old_realpath, new_realpath)) ? 1 : 0;
1.51 @@ -317,7 +317,7 @@
1.52 }
1.53
1.54 char realpath[PLATFORM_MAX_PATH+1];
1.55 - g_LibSys.PathFormat(realpath, sizeof(realpath), "%s/%s", g_SourceMod.GetBaseDir(), name);
1.56 + g_SourceMod.BuildPath(Path_SM, realpath, sizeof(realpath), "%s", name);
1.57 #ifdef PLATFORM_WINDOWS
1.58 struct _stat s;
1.59 if (_stat(realpath, &s) != 0)
1.60 @@ -354,7 +354,7 @@
1.61 }
1.62
1.63 char realpath[PLATFORM_MAX_PATH+1];
1.64 - g_LibSys.PathFormat(realpath, sizeof(realpath), "%s/%s", g_SourceMod.GetBaseDir(), name);
1.65 + g_SourceMod.BuildPath(Path_SM, realpath, sizeof(realpath), "%s", name);
1.66 #ifdef PLATFORM_WINDOWS
1.67 struct _stat s;
1.68 if (_stat(realpath, &s) != 0)
1.69 @@ -391,7 +391,7 @@
1.70 }
1.71
1.72 char realpath[PLATFORM_MAX_PATH+1];
1.73 - g_LibSys.PathFormat(realpath, sizeof(realpath), "%s/%s", g_SourceMod.GetBaseDir(), name);
1.74 + g_SourceMod.BuildPath(Path_SM, realpath, sizeof(realpath), "%s", name);
1.75
1.76 return (rmdir(realpath)) ? 0 : 1;
1.77 }