summaryrefslogtreecommitdiff
path: root/gamemode/utility.lua
diff options
context:
space:
mode:
authorAlexander Pickering <alexandermpickering@gmail.com>2016-05-15 14:31:46 -0400
committerAlexander Pickering <alexandermpickering@gmail.com>2016-05-15 14:31:46 -0400
commitdf4d1a52f9d80c68cd009bddf2e1f027aec93392 (patch)
treeb3ebe1bc4485e21d1dc66edcd58545ef3181b295 /gamemode/utility.lua
parentc3ffe12b3269b3b98f74ae80fff936c9ce1d5125 (diff)
downloadgmstranded-df4d1a52f9d80c68cd009bddf2e1f027aec93392.tar.gz
gmstranded-df4d1a52f9d80c68cd009bddf2e1f027aec93392.tar.bz2
gmstranded-df4d1a52f9d80c68cd009bddf2e1f027aec93392.zip
Added debug statements to utility.lua
Diffstat (limited to 'gamemode/utility.lua')
-rw-r--r--gamemode/utility.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/gamemode/utility.lua b/gamemode/utility.lua
index ea3435e..d11797b 100644
--- a/gamemode/utility.lua
+++ b/gamemode/utility.lua
@@ -1,4 +1,5 @@
//Helper functions to refactor the init
+print("Utility.lua included!")
function findRecursive(folderstring,recursive,dofunction)
local folderpath = "gamemodes/" .. GM.GAMEMODE_FOLDER_NAME .. "/gamemode/" .. folderstring .. "/"
@@ -17,14 +18,14 @@ end
//Ex:
// AddCSLuaFolder("client/extras",true)
function AddCSLuaFolder(folderstring,recursive)
- findRecursive(folderstring,recursive,function(string) AddCSLuaFile(string) end)
+ findRecursive(folderstring,recursive,function(string) print("Adding CS Lu file:" .. string) AddCSLuaFile(string) end)
end
//Does include() on all files within a folderpath, optionally recursive
//Ex:
// includeFolder("server/extras",false)
function includeFolder(folderstring,recursive)
- findRecursive(folderstring,recursive,function(string) include(string) end)
+ findRecursive(folderstring,recursive,function(string) print("Includeing file:" .. string) include(string) end)
end
function addResourceFolder(folderpath,recursive)