mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2025-12-07 10:28:30 +00:00
Fixed Linux build, argh
--HG-- extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40698
This commit is contained in:
parent
ba196a7fbc
commit
0e3ca5f648
@ -1417,12 +1417,12 @@ void ProcessVDF(const char *path)
|
|||||||
void LookForVDFs(const char *dir)
|
void LookForVDFs(const char *dir)
|
||||||
{
|
{
|
||||||
char path[MAX_PATH];
|
char path[MAX_PATH];
|
||||||
|
int extidx;
|
||||||
|
|
||||||
#if defined _MSC_VER
|
#if defined _MSC_VER
|
||||||
HANDLE hFind;
|
HANDLE hFind;
|
||||||
WIN32_FIND_DATA fd;
|
WIN32_FIND_DATA fd;
|
||||||
char error[255];
|
char error[255];
|
||||||
int extidx;
|
|
||||||
|
|
||||||
g_Metamod.PathFormat(path, sizeof(path), "%s\\*.*", dir);
|
g_Metamod.PathFormat(path, sizeof(path), "%s\\*.*", dir);
|
||||||
if ((hFind = FindFirstFile(path, &fd)) == INVALID_HANDLE_VALUE)
|
if ((hFind = FindFirstFile(path, &fd)) == INVALID_HANDLE_VALUE)
|
||||||
@ -1473,8 +1473,8 @@ void LookForVDFs(const char *dir)
|
|||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
extidx = strlen(fd.cFileName) - 4;
|
extidx = strlen(pEnt->d_name) - 4;
|
||||||
if (extidx < 0 || stricmp(&fd.cFileName[extidx], ".vdf"))
|
if (extidx < 0 || stricmp(&pEnt->d_name[extidx], ".vdf"))
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user