summaryrefslogtreecommitdiff
path: root/load.lua
blob: aefac626f8e57874110ff556e3c6b21943d9b1aa (plain)
1
2
3
4
5
6
7
8
9
10
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