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:
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()
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...
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()
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.
Hi!
Exactly why can't you open the data directory?
If you lack a file manager, then get Total commander for android and look for it with that. (if it works on 6.x, i only have 3.x, 4.x and 5.x droid devices sadly)
Me and my stuff True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.