Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function IncludePlugins(dir)
- local files = file.FindInLua(dir.."*")
- for k,v in pairs(files) do
- if v != "." and v != ".." then
- if string.GetExtensionFromFilename("../lua/"..dir..v) == "" then
- IncludePlugins(dir..v.."/")
- else
- include(dir..v)
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement