mirror of
https://github.com/minetest/minetest.git
synced 2024-12-02 04:23:45 +01:00
Android: Use correct temporary path (#7463)
This commit is contained in:
parent
2e85254e91
commit
8427ae529a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user