diff --git a/gamecore/modules/gamesystem/init.lua b/gamecore/modules/gamesystem/init.lua index 9c33db9..c3c7fe8 100644 --- a/gamecore/modules/gamesystem/init.lua +++ b/gamecore/modules/gamesystem/init.lua @@ -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)