Skip to content

Commit 6b72d8d

Browse files
stujones11SmallJoker
authored andcommittedJun 23, 2018
Android: Use correct temporary path (#7463)
1 parent 968ce9a commit 6b72d8d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎src/filesys.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ with this program; if not, write to the Free Software Foundation, Inc.,
2727
#include "log.h"
2828
#include "config.h"
2929
#include "porting.h"
30+
#ifdef __ANDROID__
31+
#include "settings.h" // For g_settings
32+
#endif
3033

3134
namespace fs
3235
{
@@ -372,7 +375,7 @@ std::string TempPath()
372375
configuration hardcodes mkstemp("/tmp/lua_XXXXXX").
373376
*/
374377
#ifdef __ANDROID__
375-
return DIR_DELIM "sdcard" DIR_DELIM PROJECT_NAME DIR_DELIM "tmp";
378+
return g_settings->get("TMPFolder");
376379
#else
377380
return DIR_DELIM "tmp";
378381
#endif

0 commit comments

Comments
 (0)
Please sign in to comment.