Make error message for missing sound file red in the debug console.
parent
904f9b3326
commit
bdb9c22507
|
@ -96,7 +96,7 @@ for soundName, soundPaths in pairs(SWEP.Sounds) do
|
||||||
resource.AddFile("sound/" .. soundPath)
|
resource.AddFile("sound/" .. soundPath)
|
||||||
end
|
end
|
||||||
if !file.Exists("sound/" .. soundPath, "GAME") then
|
if !file.Exists("sound/" .. soundPath, "GAME") then
|
||||||
print("[Disguiser] WARNING: Sound not found: " .. soundPath)
|
MsgC(Color(255, 0, 0), "[Disguiser] WARNING: Sound not found: " .. soundPath)
|
||||||
end
|
end
|
||||||
util.PrecacheSound(soundPath)
|
util.PrecacheSound(soundPath)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue