Er2
e46bc230a6
Bugfixes. Removed cross-engine support, only Love2D. Added filesystem and keyboard modules in LibLL. Remade input handling in skins. Files and broken folders are not shows in game list. Add MOBILE variable and auto-fullscreen on mobile phones.
32 lines
566 B
Lua
32 lines
566 B
Lua
-- Minimal Love Loader API
|
|
-- Version 2.1
|
|
-- (c) Er2 2022 <er2@dismail.de>
|
|
-- Zlib License
|
|
|
|
if not llUsed then
|
|
|
|
COLDIV = love.getVersion() == 0 and 1 or 255
|
|
MOBILE = love.system.getOS() == 'Android'
|
|
or love.system.getOS() == 'iOS'
|
|
|
|
if MOBILE
|
|
then love.window.setFullscreen(true)
|
|
end
|
|
|
|
function love.resize(x, y)
|
|
W, H = x, y
|
|
|
|
if resize then resize(W, H) end
|
|
|
|
collectgarbage 'collect' -- because new font isn't clears
|
|
end
|
|
love.resize(love.graphics.getDimensions())
|
|
|
|
function llHome()
|
|
love.event.push('quit')
|
|
end
|
|
function love.event.quit()
|
|
llHome()
|
|
end
|
|
|
|
end
|