mirror of
https://github.com/gmod-integration/lua.git
synced 2025-03-16 03:07:34 +00:00
fix config save
This commit is contained in:
parent
14b00e1462
commit
d9b55c93ca
|
@ -44,7 +44,6 @@ local function loadAllFiles(folder)
|
||||||
local files, folders = file.Find(folder .. "/*", "LUA")
|
local files, folders = file.Find(folder .. "/*", "LUA")
|
||||||
for k, v in SortedPairs(files) do
|
for k, v in SortedPairs(files) do
|
||||||
local path = folder .. "/" .. v
|
local path = folder .. "/" .. v
|
||||||
if (path == "gmod_integration/sv_config.lua") then loadConfig() continue end
|
|
||||||
print(" | Loading File | " .. path)
|
print(" | Loading File | " .. path)
|
||||||
if string.StartWith(v, "cl_") then
|
if string.StartWith(v, "cl_") then
|
||||||
if SERVER then
|
if SERVER then
|
||||||
|
@ -62,6 +61,7 @@ local function loadAllFiles(folder)
|
||||||
end
|
end
|
||||||
include(path)
|
include(path)
|
||||||
end
|
end
|
||||||
|
if (path == "gmod_integration/sv_config.lua") then loadConfig() continue end
|
||||||
end
|
end
|
||||||
for k, v in SortedPairs(folders, true) do
|
for k, v in SortedPairs(folders, true) do
|
||||||
loadAllFiles(folder .. "/" .. v, name)
|
loadAllFiles(folder .. "/" .. v, name)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user