mirror of
https://github.com/CapsAdmin/pac3.git
synced 2025-03-04 03:03:01 -05:00
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:
parent
7b253762e5
commit
b005e2f887
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user