Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function AddDir(dir) // recursively adds everything in a directory to be downloaded by client
- local list = file.FindDir("../"..dir.."/*")
- for _, fdir in pairs(list) do
- if fdir != ".svn" then // don't spam people with useless .svn folders
- AddDir(dir.."/"..fdir)
- end
- end
- for k,v in pairs(file.Find("../"..dir.."/*")) do
- resource.AddFile(dir.."/"..v)
- end
- end
- AddDir( "materials" )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement