nodes/slideshow: adjust for love2d 11+

master
informatic 2022-07-07 00:54:40 +02:00
parent dfa3f53a03
commit 059e26284c
1 changed files with 2 additions and 2 deletions

View File

@ -30,11 +30,11 @@ function node:processFiles(files)
local nFiles = {}
for _, f in ipairs(files) do
if love.filesystem.isDirectory(f) then
if love.filesystem.getInfo(f).type == "directory" then
print(f, "is directory")
for _, nf in ipairs(love.filesystem.getDirectoryItems(f)) do
print(nf, "hey")
if love.filesystem.isFile(f .. "/" .. nf) then
if love.filesystem.getInfo(f .. "/" .. nf).type == "file" then
nFiles[#nFiles + 1] = f .. "/" .. nf
end
end