mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2024-12-01 13:24:25 +01: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)
|
||||
{
|
||||
char path[MAX_PATH];
|
||||
int extidx;
|
||||
|
||||
#if defined _MSC_VER
|
||||
HANDLE hFind;
|
||||
WIN32_FIND_DATA fd;
|
||||
char error[255];
|
||||
int extidx;
|
||||
|
||||
g_Metamod.PathFormat(path, sizeof(path), "%s\\*.*", dir);
|
||||
if ((hFind = FindFirstFile(path, &fd)) == INVALID_HANDLE_VALUE)
|
||||
@ -1473,8 +1473,8 @@ void LookForVDFs(const char *dir)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
extidx = strlen(fd.cFileName) - 4;
|
||||
if (extidx < 0 || stricmp(&fd.cFileName[extidx], ".vdf"))
|
||||
extidx = strlen(pEnt->d_name) - 4;
|
||||
if (extidx < 0 || stricmp(&pEnt->d_name[extidx], ".vdf"))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user