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.
20 lines
291 B
Lua
20 lines
291 B
Lua
return function(ll)
|
|
|
|
function ll.fsIsAbs(f)
|
|
f = f:sub(1, 1)
|
|
return f == '/' or f == '\\'
|
|
end
|
|
|
|
function ll.fsIsRel(f)
|
|
return not ll.fsIsAbs(f)
|
|
end
|
|
|
|
function ll.fsFile(f)
|
|
return f:match '([^/\\]*)[/\\]*$'
|
|
end
|
|
|
|
function ll.fsDir(f)
|
|
return f:match '^(.*)[/\\]+[^/\\]*[/\\]*$'
|
|
end
|
|
|
|
end
|