From 97e0ca7f099fedfd7ee41c2f0ad4f5a443b70579 Mon Sep 17 00:00:00 2001 From: citrons Date: Fri, 1 Aug 2025 21:08:00 -0500 Subject: initial commit --- main.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 main.lua (limited to 'main.lua') diff --git a/main.lua b/main.lua new file mode 100644 index 0000000..291f490 --- /dev/null +++ b/main.lua @@ -0,0 +1,10 @@ +function love.load(args) + local cmd = "viewer" + if not love.filesystem.isFused() and args[1] == '-r' then + cmd = args[2] + end + local path = "cmd/"..cmd..".lua" + local fn = assert( + loadstring(assert(love.filesystem.read(path)), "@"..path)) + return fn(unpack(args, 3)) +end -- cgit v1.2.3