不再每次启动时强制删除存档目录内所有非文件夹内容
This commit is contained in:
7
main.lua
7
main.lua
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user