Add --fused command line argument, to override fused game detection

(Designed to make launchers work for 'fake-fused' games, for example
ones you'd easily distribute on linux.)
This commit is contained in:
Bart van Strien
2012-05-18 15:15:03 +02:00
parent 26780681ea
commit 0f0a64819e
2 changed files with 11 additions and 1 deletions
+4
View File
@@ -112,6 +112,7 @@ end
love.arg.options = {
console = { a = 0 },
fused = {a = 0 },
game = { a = 1 }
}
@@ -206,6 +207,9 @@ function love.boot()
-- Is this one of those fancy "fused" games?
local can_has_game = pcall(love.filesystem.setSource, arg0)
is_fused_game = can_has_game
if love.arg.options.fused.set then
is_fused_game = true
end
if not can_has_game and o.game.set and o.game.arg[1] then
local full_source = love.path.getfull(o.game.arg[1])