summaryrefslogtreecommitdiff
path: root/src/filesys.cpp
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2021-02-07 15:27:24 +0000
committerGitHub <noreply@github.com>2021-02-07 15:27:24 +0000
commit3a8c37181a9bf9624f3243e8e884f12ae7692609 (patch)
tree9eeb13277cdaa005e1781a6b5c46666e3596cd95 /src/filesys.cpp
parent4caf156be5baf80e6bcdb6797937ffabbe476a0f (diff)
downloadminetest-3a8c37181a9bf9624f3243e8e884f12ae7692609.tar.gz
minetest-3a8c37181a9bf9624f3243e8e884f12ae7692609.tar.bz2
minetest-3a8c37181a9bf9624f3243e8e884f12ae7692609.zip
Use consistent temp folder path (#10892)
Diffstat (limited to 'src/filesys.cpp')
-rw-r--r--src/filesys.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/filesys.cpp b/src/filesys.cpp
index eeba0c564..5ffb4506e 100644
--- a/src/filesys.cpp
+++ b/src/filesys.cpp
@@ -27,9 +27,6 @@ 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
{
@@ -359,8 +356,9 @@ std::string TempPath()
compatible with lua's os.tmpname which under the default
configuration hardcodes mkstemp("/tmp/lua_XXXXXX").
*/
+
#ifdef __ANDROID__
- return g_settings->get("TMPFolder");
+ return porting::path_cache;
#else
return DIR_DELIM "tmp";
#endif