Added stuff from TNN2 Hoggit Core to lib

This commit is contained in:
Jeremy Smitherman
2018-12-24 15:25:13 -06:00
parent 1d10411830
commit b32b093f47
5 changed files with 45 additions and 2 deletions

9
lib/logging.lua Normal file
View File

@@ -0,0 +1,9 @@
logFile = io.open(lfs.writedir()..[[Logs\HOGGIT.log]], "w")
function log(str)
if str == nil then str = 'nil' end
if logFile then
logFile:write("HOGGIT --- " .. str .."\r\n")
logFile:flush()
end
end