diff options
author | rubenwardy <rw@rubenwardy.com> | 2021-02-07 15:27:24 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-07 15:27:24 +0000 |
commit | 3a8c37181a9bf9624f3243e8e884f12ae7692609 (patch) | |
tree | 9eeb13277cdaa005e1781a6b5c46666e3596cd95 /src/filesys.cpp | |
parent | 4caf156be5baf80e6bcdb6797937ffabbe476a0f (diff) | |
download | hax-minetest-server-3a8c37181a9bf9624f3243e8e884f12ae7692609.tar.gz hax-minetest-server-3a8c37181a9bf9624f3243e8e884f12ae7692609.zip |
Use consistent temp folder path (#10892)
Diffstat (limited to 'src/filesys.cpp')
-rw-r--r-- | src/filesys.cpp | 6 |
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 |