I'm close to releasing a game for Android on the Play Store, however today my save game stopped working. It still works on PC. It used to work on Android until today.
Perhaps it's because of an Android update, or am I missing something?
These are the relevant parts of my code:
Code: Select all
loadedLevel = love.filesystem.read('currentLevel.txt')
if type(loadedLevel) == 'string' then
currentLevel = tonumber(loadedLevel)
else
currentLevel = 1
end
Code: Select all
love.filesystem.write('currentLevel.txt', currentLevel)
Code: Select all
function love.conf(t)
t.externalstorage = true
t.identity = "ampere"
end
Thanks!
PS. I searched the forums, found some topic, but none of them had an answer to the problem.