From 6b72d8d090d001737f18561ae5e036a440a01cbb Mon Sep 17 00:00:00 2001 From: stujones11 Date: Sat, 23 Jun 2018 21:38:19 +0100 Subject: [PATCH] Android: Use correct temporary path (#7463) --- src/filesys.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/filesys.cpp b/src/filesys.cpp index 694169d20..f961dedc6 100644 --- a/src/filesys.cpp +++ b/src/filesys.cpp @@ -27,6 +27,9 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "log.h" #include "config.h" #include "porting.h" +#ifdef __ANDROID__ +#include "settings.h" // For g_settings +#endif namespace fs { @@ -372,7 +375,7 @@ std::string TempPath() configuration hardcodes mkstemp("/tmp/lua_XXXXXX"). */ #ifdef __ANDROID__ - return DIR_DELIM "sdcard" DIR_DELIM PROJECT_NAME DIR_DELIM "tmp"; + return g_settings->get("TMPFolder"); #else return DIR_DELIM "tmp"; #endif -- 2.25.1