nodes/slideshow: adjust for love2d 11+
parent
dfa3f53a03
commit
059e26284c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue