mirror of
https://github.com/SashLilac/cambridge.git
synced 2024-11-22 03:09:03 -06:00
Fixed an edge case with the last save commit
This commit is contained in:
parent
c56f290921
commit
e1741440f2
@ -1,6 +1,11 @@
|
||||
local binser = require 'libs.binser'
|
||||
|
||||
function loadSave()
|
||||
local info = love.filesystem.getInfo(love.filesystem.getSaveDirectory())
|
||||
if not info or info.type ~= "directory" then
|
||||
love.filesystem.remove(love.filesystem.getSaveDirectory())
|
||||
love.filesystem.createDirectory(love.filesystem.getSaveDirectory())
|
||||
end
|
||||
config = loadFromFile(
|
||||
love.filesystem.getSaveDirectory() .. '/config.sav'
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user