love._openConsole is now called before main.lua is loaded

This commit is contained in:
Alex Szpakowski
2013-04-18 17:03:32 -03:00
parent ce59756463
commit 6142352cd4
2 changed files with 12 additions and 12 deletions
+5 -5
View File
@@ -358,6 +358,11 @@ function love.init()
love.graphics.setCaption(c.title)
end
-- Console hack
if c.console and love._openConsole then
love._openConsole()
end
-- Our first timestep, because screen creation can take some time
if love.timer then
love.timer.step()
@@ -373,11 +378,6 @@ function love.init()
error("No code to run\nYour game might be packaged incorrectly\nMake sure main.lua is at the top level of the zip")
end
-- Console hack
if c.console and love._openConsole then
love._openConsole()
end
-- Check the version
local compat = false
c.version = tostring(c.version)