mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
When path is invalid no-game screen is shown
This commit is contained in:
@@ -113,7 +113,9 @@ function love.boot()
|
||||
|
||||
if arg and arg[1] then
|
||||
love.filesystem.init(love.path.getfull(love.arg.getLow(arg)))
|
||||
love.filesystem.setSource(love.path.getfull(arg[1]))
|
||||
if not pcall(love.filesystem.setSource, love.path.getfull(arg[1])) then
|
||||
love.nogame()
|
||||
end
|
||||
else
|
||||
love.filesystem = nil
|
||||
love.nogame() -- Who needs a game? Got one embedded right here!
|
||||
@@ -689,4 +691,4 @@ result = xpcall(love.boot, error_printer)
|
||||
result = xpcall(love.init, error_printer)
|
||||
result = xpcall(love.run, love.errhand)
|
||||
|
||||
print("Done.")
|
||||
print("Done.")
|
||||
|
||||
+749
-747
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user