Fixed non-protected call to love.conf.

This commit is contained in:
rude
2009-11-11 20:52:59 +01:00
parent 86ac10c3f6
commit 127c980ff8
2 changed files with 756 additions and 747 deletions
+6 -2
View File
@@ -217,7 +217,11 @@ function love.init()
-- Yes, conf.lua might not exist, but there are other ways of making
-- love.conf appear, so we should check for it anyway.
if love.conf then
love.conf(c)
local ok, err = pcall(love.conf, c)
if not ok then
print(err)
-- continue
end
end
if love.arg.options.console.set then
@@ -274,7 +278,7 @@ function love.run()
love.handlers[e](a,b,c)
end
--love.timer.sleep(10)
love.timer.sleep(1)
love.graphics.present()
end