aboutsummaryrefslogtreecommitdiff
path: root/gamemode/nrequire.lua
diff options
context:
space:
mode:
authorAlexander Pickering <alexandermpickering@gmail.com>2017-11-04 22:42:24 -0400
committerAlexander Pickering <alexandermpickering@gmail.com>2017-11-04 22:42:24 -0400
commit5d77d8475af7aff27eb026a4b56065387c024165 (patch)
treeccdd061e5654288ab53134be52e8b1ef194d5ebc /gamemode/nrequire.lua
parent40080dcfde028c64c4f6f51792b928ee91677bc6 (diff)
downloadartery-5d77d8475af7aff27eb026a4b56065387c024165.tar.gz
artery-5d77d8475af7aff27eb026a4b56065387c024165.tar.bz2
artery-5d77d8475af7aff27eb026a4b56065387c024165.zip
Massive changes
* New error messages for missing dependencies * Removed useless art_serverchanger entity * Added a sweet ascii logo * Added Skills * Minor fixes to cl_inventory tracker * Changed a few prints to use logging module
Diffstat (limited to 'gamemode/nrequire.lua')
-rw-r--r--gamemode/nrequire.lua3
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)