From: stujones11 Date: Sat, 23 Jun 2018 20:38:19 +0000 (+0100) Subject: Android: Use correct temporary path (#7463) X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8427ae529a68b4ed6a009beace17e6cdf9b47aea;p=oweals%2Fminetest.git Android: Use correct temporary path (#7463) --- diff --git a/src/filesys.cpp b/src/filesys.cpp index bd8b94aff..f60e9218b 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 { @@ -374,7 +377,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