Skip to content

Instantly share code, notes, and snippets.

@ColonelThirtyTwo
Created October 13, 2012 02:58
Show Gist options
  • Save ColonelThirtyTwo/3883041 to your computer and use it in GitHub Desktop.
Save ColonelThirtyTwo/3883041 to your computer and use it in GitHub Desktop.
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