added amb1378 - FileExists() for valve fs

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401860
This commit is contained in:
David Anderson
2008-01-22 17:04:59 +00:00
parent 89b6252f8e
commit f50509abf0
2 changed files with 10 additions and 1 deletions
+5
View File
@@ -288,6 +288,11 @@ static cell_t sm_FileExists(IPluginContext *pContext, const cell_t *params)
return 0;
}
if (params[0] >= 2 && params[2] == 1)
{
return basefilesystem->FileExists(name) ? 1 : 0;
}
char realpath[PLATFORM_MAX_PATH];
g_SourceMod.BuildPath(Path_Game, realpath, sizeof(realpath), "%s", name);
#ifdef PLATFORM_WINDOWS