Added support for resource files in Valve's file system. Thanks to Kyle.

This commit is contained in:
Richard Helgeby
2013-04-16 02:43:29 +02:00
parent 5269107303
commit 7e72ede0ca
3 changed files with 5 additions and 5 deletions

View File

@ -202,7 +202,7 @@ stock ClassValidateAttributes(classindex, bool:logErrors = false)
!StrEqual(model_path, "no_change", false))
{
// Check if the file exists.
if (!FileExists(model_path))
if (!FileExists(model_path, true))
{
flags += ZR_CLASS_MODEL_PATH;
if (logErrors)
@ -253,7 +253,7 @@ stock ClassValidateAttributes(classindex, bool:logErrors = false)
{
// Check if the file exists.
Format(overlay, sizeof(overlay), "materials/%s.vmt", overlay_path);
if (!FileExists(overlay))
if (!FileExists(overlay, true))
{
flags += ZR_CLASS_OVERLAY_PATH;
if (logErrors)
@ -485,7 +485,7 @@ stock ClassValidateEditableAttributes(attributes[ClassEditableAttributes])
{
// Check if the file exists.
Format(overlay, sizeof(overlay), "materials/%s.vmt", overlay_path);
if (!FileExists(overlay))
if (!FileExists(overlay, true))
{
flags += ZR_CLASS_OVERLAY_PATH;
}