fix(game): replace love.filesystem.exists by utils.filesystem.exists
This commit is contained in:
parent
3e907b69d7
commit
2da2ffd538
1 changed files with 3 additions and 3 deletions
|
@ -88,7 +88,7 @@ function GameSystem:getSaveNumber()
|
||||||
end
|
end
|
||||||
|
|
||||||
function GameSystem:resetSave(saveid)
|
function GameSystem:resetSave(saveid)
|
||||||
if love.filesystem.exists("save" .. saveid .. ".save") then
|
if utils.filesystem.exists("save" .. saveid .. ".save") then
|
||||||
love.filesystem.remove( "save" .. saveid .. ".save" )
|
love.filesystem.remove( "save" .. saveid .. ".save" )
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -103,7 +103,7 @@ function GameSystem:getSavePath(saveid, absolute)
|
||||||
local saveDir = ""
|
local saveDir = ""
|
||||||
if (absolute) then
|
if (absolute) then
|
||||||
saveDir = love.filesystem.getSaveDirectory() .. "/"
|
saveDir = love.filesystem.getSaveDirectory() .. "/"
|
||||||
if not love.filesystem.exists(saveDir) then
|
if not utils.filesystem.exists(saveDir) then
|
||||||
love.filesystem.createDirectory( "" )
|
love.filesystem.createDirectory( "" )
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -118,7 +118,7 @@ function GameSystem:getSaveName(saveid)
|
||||||
end
|
end
|
||||||
|
|
||||||
function GameSystem:saveFileExist(saveid)
|
function GameSystem:saveFileExist(saveid)
|
||||||
return love.filesystem.exists(self:getSaveName(saveid))
|
return utils.filesystem.exists(self:getSaveName(saveid))
|
||||||
end
|
end
|
||||||
|
|
||||||
function GameSystem:read(saveid)
|
function GameSystem:read(saveid)
|
||||||
|
|
Loading…
Reference in a new issue