Don't use Valve file system when calling a FileExists.
This commit is contained in:
1 parent
71d5c297d3
commit
4f460baa9b
4 files changed
+6
-6
No files matched your search
@@ -79,7 +79,7 @@ bool:AmbientSoundsValidateConfig()
|
||||
Format(sound, sizeof(sound), "sound/%s", sound);
|
||||
|
||||
// If file doesn't exist, then log error and stop.
|
||||
if (!FileExists(sound, true))
|
||||
if (!FileExists(sound, false))
|
||||
{
|
||||
// Log invalid sound file error.
|
||||
LogEvent(false, LogType_Error, LOG_CORE_EVENTS, LogModule_SEffects, "Config Validation", "Invalid sound file specified in \"zr_ambientsounds_file\": %s", sound);
|
||||
|
||||
Reference in new issue
Block a user