fix(game): replace love.filesystem.exists by utils.filesystem.exists

This commit is contained in:
Kazhnuz 2019-07-24 15:24:06 +02:00
parent 3e907b69d7
commit 2da2ffd538

View file

@ -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)