mirror of
https://github.com/cave-story-randomizer/cave-story-randomizer
synced 2024-11-26 00:33:34 +00:00
swaps deprecated functions to recommended ones
This commit is contained in:
parent
71b340acd9
commit
07a33104aa
|
@ -37,10 +37,10 @@ local function recursiveWrite(path, name)
|
||||||
lf.createDirectory(name)
|
lf.createDirectory(name)
|
||||||
for i,v in ipairs(filesTable) do
|
for i,v in ipairs(filesTable) do
|
||||||
local file = path..'/'..v
|
local file = path..'/'..v
|
||||||
if lf.isFile(file) then
|
if lf.getInfo(file, 'file') ~= nil then
|
||||||
local n
|
local n
|
||||||
lf.write(name..'/'..v, lf.read(file))
|
lf.write(name..'/'..v, lf.read(file))
|
||||||
elseif lf.isDirectory(file) then
|
elseif lf.getInfo(file, 'directory') ~= nil then
|
||||||
recursiveWrite(file, name..'/'..v)
|
recursiveWrite(file, name..'/'..v)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue