fork/m-overlay

git clone https://git.julia.blue/fork/m-overlay

BkacjiosUse our own custom filesystem module for getDirectoryItems.2c3d0c1

main
445 B13 linesraw
1local filesystem = {
2	subsystem = require("util.filesystem." .. jit.os:lower())
3}
4
5-- getDirectoryItems fails to get items if the folder is a symlink
6-- https://love2d.org/forums/viewtopic.php?p=219899&sid=133d3c486ccbeb05cdcacfe150395ab5#p219899
7
8function filesystem.getDirectoryItems(path)
9	local savePath = love.filesystem.getSaveDirectory()
10	return filesystem.subsystem.getItems(string.format("%s/%s", savePath, path))
11end
12
13return filesystem