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
|
||||
|
||||
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" )
|
||||
end
|
||||
end
|
||||
|
@ -103,7 +103,7 @@ function GameSystem:getSavePath(saveid, absolute)
|
|||
local saveDir = ""
|
||||
if (absolute) then
|
||||
saveDir = love.filesystem.getSaveDirectory() .. "/"
|
||||
if not love.filesystem.exists(saveDir) then
|
||||
if not utils.filesystem.exists(saveDir) then
|
||||
love.filesystem.createDirectory( "" )
|
||||
end
|
||||
end
|
||||
|
@ -118,7 +118,7 @@ function GameSystem:getSaveName(saveid)
|
|||
end
|
||||
|
||||
function GameSystem:saveFileExist(saveid)
|
||||
return love.filesystem.exists(self:getSaveName(saveid))
|
||||
return utils.filesystem.exists(self:getSaveName(saveid))
|
||||
end
|
||||
|
||||
function GameSystem:read(saveid)
|
||||
|
|
Loading…
Reference in a new issue