feat: pass command line args to birb

This commit is contained in:
Kazhnuz 2021-06-06 13:41:34 +02:00
parent 388c6f1ef9
commit d82621bf58
2 changed files with 7 additions and 6 deletions

View file

@ -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)

View file

@ -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