1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2025-02-26 19:54:14 +01:00

Err, fixed Linux build for real

--HG--
branch : sourcemm-1.4.4
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/branches/sourcemm-1.4.4%40699
This commit is contained in:
Scott Ehlert 2008-07-12 08:59:30 +00:00
parent cb42757f83
commit ee77452d92

View File

@ -706,7 +706,7 @@ void LookForVDFs(const char *dir)
WIN32_FIND_DATA fd; WIN32_FIND_DATA fd;
char error[255]; char error[255];
g_Metamod.PathFormat(path, sizeof(path), "%s\\*.*", dir); g_SmmAPI.PathFormat(path, sizeof(path), "%s\\*.*", dir);
if ((hFind = FindFirstFile(path, &fd)) == INVALID_HANDLE_VALUE) if ((hFind = FindFirstFile(path, &fd)) == INVALID_HANDLE_VALUE)
{ {
DWORD dw = GetLastError(); DWORD dw = GetLastError();
@ -733,8 +733,8 @@ void LookForVDFs(const char *dir)
{ {
continue; continue;
} }
g_Metamod.PathFormat(path, sizeof(path), "%s\\%s", dir, fd.cFileName); g_SmmAPI.PathFormat(path, sizeof(path), "%s\\%s", dir, fd.cFileName);
ProcessVDF(path); LoadFromVDF(path);
} while (FindNextFile(hFind, &fd)); } while (FindNextFile(hFind, &fd));
FindClose(hFind); FindClose(hFind);
@ -760,8 +760,8 @@ void LookForVDFs(const char *dir)
{ {
continue; continue;
} }
g_Metamod.PathFormat(path, sizeof(path), "%s/%s", dir, pEnt->d_name); g_SmmAPI.PathFormat(path, sizeof(path), "%s/%s", dir, pEnt->d_name);
ProcessVDF(path); LoadFromVDF(path);
} }
closedir(pDir); closedir(pDir);