feat: pass command line args to birb
This commit is contained in:
parent
388c6f1ef9
commit
d82621bf58
2 changed files with 7 additions and 6 deletions
|
@ -33,15 +33,15 @@ enum = require("birb.utils.enum")
|
|||
|
||||
birb.Core = require("birb.core")
|
||||
|
||||
function birb.start(gamemodule)
|
||||
birb.startCore()
|
||||
function birb.start(gamemodule, args)
|
||||
birb.startCore(args)
|
||||
if (gamemodule ~= nil) then
|
||||
birb.startGame(gamemodule)
|
||||
end
|
||||
end
|
||||
|
||||
function birb.startCore()
|
||||
core = birb.Core()
|
||||
function birb.startCore(args)
|
||||
core = birb.Core(args)
|
||||
end
|
||||
|
||||
function birb.startGame(gamemodule)
|
||||
|
|
|
@ -25,7 +25,8 @@ require "birb"
|
|||
|
||||
scenes = require "scenes"
|
||||
|
||||
function love.load()
|
||||
birb.start("game")
|
||||
function love.load(args)
|
||||
print(utils.table.toString(args))
|
||||
birb.start("game", args)
|
||||
scenes.title()
|
||||
end
|
Loading…
Reference in a new issue