Created
October 13, 2012 02:58
-
-
Save ColonelThirtyTwo/3883041 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function AddDir(dir) | |
local files, folders = file.Find(dir, "GAME") | |
for _,file in ipairs(files) do | |
resource.AddFile(dir.."/"..file) | |
end | |
for _,folder in ipairs(folders) do | |
if folder:sub(1,1) ~= "." then -- Ignore .svn/.git folders | |
AddDir(dir.."/"..folder) | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment