Build Fix!
This commit is contained in:
parent
13c1fd09c4
commit
b61542242c
@ -768,7 +768,7 @@ bool CGameConfig::Reparse(char *error, size_t maxlength)
|
|||||||
|
|
||||||
/* Only allow .txt files */
|
/* Only allow .txt files */
|
||||||
int len = strlen(curFile);
|
int len = strlen(curFile);
|
||||||
if (len > 4 && strcmp(curFile[len-4], ".txt") != 0)
|
if (len > 4 && strcmp(&curFile[len-4], ".txt") != 0)
|
||||||
{
|
{
|
||||||
customDir->NextEntry();
|
customDir->NextEntry();
|
||||||
continue;
|
continue;
|
||||||
@ -777,14 +777,14 @@ bool CGameConfig::Reparse(char *error, size_t maxlength)
|
|||||||
UTIL_Format(path, sizeof(path), "%s/custom/%s", m_File, curFile);
|
UTIL_Format(path, sizeof(path), "%s/custom/%s", m_File, curFile);
|
||||||
if (!EnterFile(path, error, maxlength))
|
if (!EnterFile(path, error, maxlength))
|
||||||
{
|
{
|
||||||
g_LibSys->CloseDirectory(customDir);
|
g_LibSys.CloseDirectory(customDir);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
customDir->NextEntry();
|
customDir->NextEntry();
|
||||||
}
|
}
|
||||||
|
|
||||||
g_LibSys->CloseDirectory(customDir);
|
g_LibSys.CloseDirectory(customDir);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user