aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorstujones11 <stujones111@gmail.com>2018-06-23 21:38:19 +0100
committerSmallJoker <SmallJoker@users.noreply.github.com>2018-06-23 22:38:19 +0200
commit6b72d8d090d001737f18561ae5e036a440a01cbb (patch)
tree88078992f3b061b3c773231c5c28a87ef4373936 /src
parent968ce9af598024ec71e9ffb2d15c3997a13ad754 (diff)
downloadminetest-6b72d8d090d001737f18561ae5e036a440a01cbb.tar.gz
minetest-6b72d8d090d001737f18561ae5e036a440a01cbb.tar.bz2
minetest-6b72d8d090d001737f18561ae5e036a440a01cbb.zip
Android: Use correct temporary path (#7463)
Diffstat (limited to 'src')
-rw-r--r--src/filesys.cpp5
1 files changed, 4 insertions, 1 deletions
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