2026-06-08 14:41:38 +02:00
|
|
|
-- sync lovr/love positional cli arguments
|
|
|
|
|
if arg[0] == nil and arg[1] ~= nil then arg[0] = arg[1] end
|
|
|
|
|
|
|
|
|
|
local runtime = ""
|
|
|
|
|
|
|
|
|
|
if lovr ~= nil then runtime = "lovr" end
|
|
|
|
|
if love ~= nil then runtime = "love" end
|
|
|
|
|
|
2026-06-10 22:58:48 +02:00
|
|
|
package.path = package.path .. ';' ..
|
|
|
|
|
arg[0] .. '/' .. runtime .. '/?.lua;' ..
|
|
|
|
|
arg[0] .. '/' .. runtime .. '/?/init.lua;' ..
|
|
|
|
|
arg[0] .. '/lib/?.lua'
|
|
|
|
|
|
|
|
|
|
|
2026-06-08 14:41:38 +02:00
|
|
|
require( runtime .. "/conf")
|