Shared: add `bool FileExists(string filePath)` function
This commit is contained in:
parent
2530608b1f
commit
6c1db1f4f6
|
@ -503,4 +503,14 @@ Route_GetJumpVelocity(vector vecFrom, vector vecTo, float flGravMod)
|
|||
vecJump[2] = 280;
|
||||
#endif
|
||||
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 New Issue