remove a goto
This commit is contained in:
8
main.lua
8
main.lua
@@ -38,12 +38,12 @@ love.mouse.setVisible(false)
|
||||
--Create directories
|
||||
for _,v in next,{"conf","record","replay"}do
|
||||
local info=fs.getInfo(v)
|
||||
if info then
|
||||
if info.type=="directory"then goto NEXT end
|
||||
if not info then
|
||||
fs.createDirectory(v)
|
||||
elseif info.type ~= 'directory' then
|
||||
fs.remove(v)
|
||||
fs.createDirectory(v)
|
||||
end
|
||||
fs.createDirectory(v)
|
||||
::NEXT::
|
||||
end
|
||||
|
||||
--Delete some useless files
|
||||
|
||||
Reference in New Issue
Block a user