diff --git a/data/scripts/debug.lua b/data/scripts/debug.lua index 51689cb..4176420 100644 --- a/data/scripts/debug.lua +++ b/data/scripts/debug.lua @@ -91,3 +91,7 @@ end]] function logPrint(string) if logging then print(string) end end + +function logWrite(string) + if logging then print(string) end +end diff --git a/main.lua b/main.lua index 4ce65ed..49c7a3f 100644 --- a/main.lua +++ b/main.lua @@ -1,5 +1,5 @@ function love.load() - --logging = true + logging = true if logging then print("love: "..collectgarbage("count").." kB") end arrow = 0 @@ -81,7 +81,7 @@ function love.update(dt) if debug or logging then memoryUsage = math.floor(collectgarbage("count")) end - logPrint("Second "..secs..": "..memoryUsage.." kB") + logWrite("Second "..secs..": "..memoryUsage.." kB") end --keypressed