We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
loadFromFile
1 parent 522a3c0 commit 7f1a93aCopy full SHA for 7f1a93a
load/save.lua
@@ -14,12 +14,12 @@ function loadFromFile(filename)
14
if file_data == nil then
15
return {} -- new object
16
end
17
- else
18
- love.filesystem.write(filename..".backup", file_data) -- backup creation if sucessful
19
20
local result, save_data = pcall(binser.deserialize, file_data)
21
if result == false or save_data == nil then
22
+ else
+ love.filesystem.write(filename..".backup", file_data) -- backup creation if sucessful
23
24
return save_data[1]
25
0 commit comments