mirror of
https://github.com/love2d/love.git
synced 2026-08-14 01:20:56 +02:00
Now returns return value 1 on error
This commit is contained in:
@@ -802,8 +802,10 @@ end
|
||||
-----------------------------------------------------------
|
||||
|
||||
local result = xpcall(love.boot, error_printer)
|
||||
if not result then return end
|
||||
if not result then return 1 end
|
||||
local result = xpcall(love.init, love._release and love.releaseerrhand or love.errhand)
|
||||
if not result then return end
|
||||
if not result then return 1 end
|
||||
local result = xpcall(love.run, love._release and love.releaseerrhand or love.errhand)
|
||||
if not result then return end
|
||||
if not result then return 1 end
|
||||
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user