From 3129926390486aa334bab648ced10bd928f99c93 Mon Sep 17 00:00:00 2001 From: the lemons Date: Sun, 28 Aug 2022 01:13:24 -0500 Subject: enable multiple runtimes --- load.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 load.lua (limited to 'load.lua') diff --git a/load.lua b/load.lua new file mode 100644 index 0000000..aefac62 --- /dev/null +++ b/load.lua @@ -0,0 +1,11 @@ +return function(args) + love.setDeprecationOutput(false) + + local runtime = "game" + if not love.filesystem.isFused() and args[1] == '-r' then + runtime = args[2] + end + local path = "runtime/"..runtime..".lua" + local rt = assert(loadstring(assert(love.filesystem.read(path)))) + return rt(unpack(args, 3)) +end -- cgit v1.2.3