mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
Added a flag that changes android storage from internal to external.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user