update file.Exists checks

This commit is contained in:
Pierce 2024-01-28 01:03:36 -05:00
parent 89c471034e
commit 472dd31648
No known key found for this signature in database
GPG Key ID: EC79465B0E865E47
3 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,4 @@
if not file.Exists("entities/mediaplayer_tv", "LUA") then return end
if not file.Exists( "entities/mediaplayer_tv/shared.lua", "LUA" ) then return end
AddCSLuaFile()

View File

@ -1,4 +1,5 @@
if not file.Exists("entities/starfall_processor", "LUA") then return end
---@diagnostic disable-next-line: undefined-global
if not file.Exists( "entities/starfall_processor/cl_init.lua", "LUA" ) then return end
AddCSLuaFile()

View File

@ -35,7 +35,7 @@ function CFCHTTP.LuaFileSource( filename )
end
---@param dir string
---@return fun(): WhitelistConfig[]
---@return (fun(): WhitelistConfig)[]
function CFCHTTP.LuaDirectorySources( dir )
---@type (fun(): WhitelistConfig)[]
local funcs = {}