blob: 291f490c3e309e870dd6196590b11ade4c91d504 (
plain)
1
2
3
4
5
6
7
8
9
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
|