When path is invalid no-game screen is shown

This commit is contained in:
bart@bart
2009-08-27 15:03:00 +02:00
parent a237008ce2
commit 9434c7b7a1
2 changed files with 753 additions and 749 deletions
+4 -2
View File
@@ -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
View File
File diff suppressed because it is too large Load Diff