xurfer/src/conf.lua

16 lines
436 B
Lua
Raw Normal View History

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
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")