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
+3 -1
View File
@@ -73,8 +73,10 @@ int w_setIdentity(lua_State *L)
{
const char *arg = luaL_checkstring(L, 1);
bool append = luax_optboolean(L, 2, false);
bool internalStorage = luax_optboolean(L, 3, false);
if (!instance()->setIdentity(arg, append))
if (!instance()->setIdentity(arg, append, internalStorage))
return luaL_error(L, "Could not set write directory.");
return 0;