diff options
Diffstat (limited to 'load.lua')
-rw-r--r-- | load.lua | 11 |
1 files changed, 11 insertions, 0 deletions
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 |