Shared: add bool FileExists(string filePath)
function
This commit is contained in:
parent
2530608b1f
commit
6c1db1f4f6
1 changed files with 10 additions and 0 deletions
|
@ -503,4 +503,14 @@ Route_GetJumpVelocity(vector vecFrom, vector vecTo, float flGravMod)
|
||||||
vecJump[2] = 280;
|
vecJump[2] = 280;
|
||||||
#endif
|
#endif
|
||||||
return vecJump;
|
return vecJump;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool
|
||||||
|
FileExists(string filePath)
|
||||||
|
{
|
||||||
|
if (filePath != "") /* not empty */
|
||||||
|
if not(whichpack(filePath)) /* not present on disk */
|
||||||
|
return false;
|
||||||
|
|
||||||
|
return true;
|
||||||
}
|
}
|
Loading…
Reference in a new issue