mirror of
https://github.com/love2d/love.git
synced 2026-08-13 17:10:54 +02:00
love._openConsole is now called before main.lua is loaded
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user