Plz work. kthx

git-svn-id: http://gmodcapsadmin.googlecode.com/svn/trunk/addons/pac3@22 047d434e-d786-fb00-e516-99c5e643cd71
This commit is contained in:
pbninja101@gmail.com 2012-05-30 18:07:13 +00:00
parent 7b253762e5
commit b005e2f887
2 changed files with 4 additions and 3 deletions

View File

@ -4,7 +4,7 @@ if SERVER then
local function add_files(dir)
local files
if net then
if not file.FindInLua then
local _files, _folders = file.Find(dir .. "*", LUA_PATH)
files = {}
for k,v in pairs(_files) do

View File

@ -4,12 +4,13 @@ if SERVER then
local function add_files(dir)
local files
if net then
local _files, _folders = file.FindNewBeta and file.FindNewBeta(dir .. "*", LUA_PATH) or file.Find(dir .. "*", LUA_PATH)
if not file.FindInLua then
local _files, _folders = file.Find(dir .. "*", LUA_PATH)
files = {}
for k,v in pairs(_files) do
table.insert(files, v)
end
for k,v in pairs(_folders) do
table.insert(files, v)
end