love-loader/lib/main.lua

28 lines
382 B
Lua
Raw Permalink Normal View History

2022-05-30 07:33:56 +00:00
local ll = {}
ll.cfg = {
root = 'games/',
}
require 'lib.game' (ll)
require 'lib.chroot' (ll)
require 'lib.load' (ll)
function ll.home()
ll.umount()
error 'go to home'
end
if love then
require 'lib.love.chroot' (ll)
require 'lib.love.load' (ll)
function ll.home()
ll.umount()
love.event.push('quit', 'restart')
end
llHome = ll.home
end
return ll