diff options
Diffstat (limited to 'gamemode/nrequire.lua')
| -rw-r--r-- | gamemode/nrequire.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gamemode/nrequire.lua b/gamemode/nrequire.lua index 1ec4fb7..29e350d 100644 --- a/gamemode/nrequire.lua +++ b/gamemode/nrequire.lua @@ -6,7 +6,6 @@ ]] --Don't run ourselves, or we'll get stuck in a recursive loop! if nrequire ~= nil then return end -print("hello from nrequire!") local path = (GM or GAMEMODE).Folder:gsub("gamemodes/","") .. "/gamemode" --[[ Calls func on all the files under dir. @@ -161,6 +160,7 @@ function nrequire(req) --Deal with bookkeeping dealing with circular dependancies, and include pathstack[#pathstack + 1] = tpath reqtbl[tpath] = include(tpath) + hook.Call("artery_file_included",nil,tpah) --[[ co = coroutine.create(function() reqtbl[tpath] = include(tpath) @@ -192,7 +192,6 @@ hook.Call("artery_nrequire_defined") If the file starts with cl_ it will only be included on the client, if it starts with sv_ it will only be included on the server. If it starts with anything else, it will be shared. Will detect and error on circuar dependancy. ]] local function doincludes() - print("doing includes") paths = {} TraverseFolder("",ins) ntbl = rebuild_include_table(paths) |
