love-loader/lib/main.lua

28 lines
409 B
Lua
Raw Permalink Normal View History

2022-05-30 07:33:56 +00:00
local ll = {}
ll.cfg = {
root = 'games/',
}
require 'lib.fs' (ll)
2022-05-30 07:33:56 +00:00
require 'lib.game' (ll)
require 'lib.chroot' (ll)
require 'lib.load' (ll)
require 'lib.keyb' (ll)
2022-05-30 07:33:56 +00:00
function ll.home()
ll.umount()
love.event.push('quit', 'restart')
2022-05-30 07:33:56 +00:00
end
ll.dt = false
function ll.devtools()
if not ll.dt then
ll.dt = true
__LL = ll
pcall(function() require 'dev.tools' end)
2022-05-30 07:33:56 +00:00
end
end
return ll