Added a flag that changes android storage from internal to external.

This commit is contained in:
BobbyJones
2015-12-31 01:28:00 -05:00
parent a42341aa73
commit 3c83fb8626
5 changed files with 17 additions and 9 deletions
+2 -1
View File
@@ -374,6 +374,7 @@ function love.init()
console = false, -- Only relevant for windows.
identity = false,
appendidentity = false,
internalStorage = false, -- Only relevant for Android.
accelerometerjoystick = true, -- Only relevant for Android / iOS.
gammacorrect = false,
}
@@ -493,7 +494,7 @@ function love.init()
end
if love.filesystem then
love.filesystem.setIdentity(c.identity or love.filesystem.getIdentity(), c.appendidentity)
love.filesystem.setIdentity(c.identity or love.filesystem.getIdentity(), c.appendidentity, c.internalStorage)
if love.filesystem.isFile("main.lua") then
require("main")
end