不再每次启动时强制删除存档目录内所有非文件夹内容

This commit is contained in:
MrZ626
2021-03-17 20:05:28 +08:00
parent 4cdafcccd2
commit f50c9a6b2d

View File

@@ -112,13 +112,6 @@ if fs.getInfo("data.dat")or fs.getInfo("key.dat")or fs.getInfo("settings.dat")th
end
end
--Force delete all useless files
for _,name in next,fs.getDirectoryItems("")do
if fs.getRealDirectory(name)==SAVEDIR and fs.getInfo(name).type=="file"then
fs.remove(name)
end
end
--Load modules
require"Zframework"