love.filesystem does not work on Android 6.0+
Posted: Sun Mar 26, 2017 10:12 am
Hello everyone!
I'm trying to make an autoupdater for my game to simplify the testing/distribution process for my games. It works quite well on Android 5.0 and below but it doesnt want to work on android 6.0+
here is the bit of code that manages the download/run part:
The download part does not throw an error but when i try to load it the app just resets so i assume there is nothing on the storage.
Does anyone have a similar problem?
Also i cannot open the /data directory in Android to check if there is something in it or not...
Thanks in advance.
I'm trying to make an autoupdater for my game to simplify the testing/distribution process for my games. It works quite well on Android 5.0 and below but it doesnt want to work on android 6.0+
here is the bit of code that manages the download/run part:
Code: Select all
local body, code = http.request("mydomain/game.love")
if not body then error(code) end
file = love.filesystem.newFile( "game.love" )
file:open("w")
file:write(body)
file:close()
Code: Select all
love.filesystem.mount('game.love', '')
package.loaded.main = nil
package.loaded.conf = nil
love.conf = nil
love.init()
love.load(args)
Does anyone have a similar problem?
Also i cannot open the /data directory in Android to check if there is something in it or not...
Thanks in advance.