Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. function IncludePlugins(dir)
  2. local files = file.FindInLua(dir.."*")
  3. for k,v in pairs(files) do
  4. if v != "." and v != ".." then
  5. if string.GetExtensionFromFilename("../lua/"..dir..v) == "" then
  6. IncludePlugins(dir..v.."/")
  7. else
  8. include(dir..v)
  9. end
  10. end
  11. end
  12. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement