From d82621bf58c2715ec27a3bc11293b508da48f05f Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Sun, 6 Jun 2021 13:41:34 +0200 Subject: [PATCH] feat: pass command line args to birb --- sonic-radiance.love/birb/init.lua | 8 ++++---- sonic-radiance.love/main.lua | 5 +++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/sonic-radiance.love/birb/init.lua b/sonic-radiance.love/birb/init.lua index 0f13883..b6827c4 100644 --- a/sonic-radiance.love/birb/init.lua +++ b/sonic-radiance.love/birb/init.lua @@ -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) diff --git a/sonic-radiance.love/main.lua b/sonic-radiance.love/main.lua index 52abe33..a3bd7ad 100644 --- a/sonic-radiance.love/main.lua +++ b/sonic-radiance.love/main.lua @@ -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 \ No newline at end of file