aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ClientHamr/GuiLua/skang.lua
diff options
context:
space:
mode:
Diffstat (limited to 'ClientHamr/GuiLua/skang.lua')
-rw-r--r--ClientHamr/GuiLua/skang.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/ClientHamr/GuiLua/skang.lua b/ClientHamr/GuiLua/skang.lua
index 3e9314f..3ddc692 100644
--- a/ClientHamr/GuiLua/skang.lua
+++ b/ClientHamr/GuiLua/skang.lua
@@ -345,10 +345,12 @@ end
345-- Restore the environment, and grab paramateres from standard places. 345-- Restore the environment, and grab paramateres from standard places.
346moduleEnd = function (module) 346moduleEnd = function (module)
347 -- See if there is a properties file, and run it in the modules environment. 347 -- See if there is a properties file, and run it in the modules environment.
348 local properties = loadfile(module._NAME .. '.properties') 348 local properties, err = loadfile(module._NAME .. '.properties')
349 if properties then 349 if properties then
350 setfenv(properties, getfenv(2)) 350 setfenv(properties, getfenv(2))
351 properties() 351 properties()
352 elseif 'cannot open ' ~= string.sub(err, 1, 12) then
353 print("ERROR - " .. err)
352 end 354 end
353 355
354 pullArguments(module) 356 pullArguments(module)