mirror of
https://github.com/love2d/love.git
synced 2026-08-14 01:20:56 +02:00
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:
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user