-- Minimal Love Loader API -- Version 3.0 -- (c) Er2 2022 -- Zlib License if not llUsed then COLDIV = love.getVersion() == 0 and 1 or 255 if love.system then MOBILE = love.system.getOS() == 'Android' or love.system.getOS() == 'iOS' else MOBILE = false end function llHome() love.event.push('quit', 'restart') end if love.getVersion() >= 12 then function love.graphics.stencil(fn) love.graphics.setColorMask(false) love.graphics.setStencilMode('replace', 'always', 1) fn() love.graphics.setColorMask(true) end function love.graphics.setStencilTest(cmp, val) if cmp then love.graphics.setStencilMode('keep', cmp, val) else love.graphics.setStencilMode() end end end 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 love.event.quit() llHome() end end