Skip to content

Commit

Permalink
Android: Use correct temporary path (#7463)
Browse files Browse the repository at this point in the history
  • Loading branch information
stujones11 authored and SmallJoker committed Jun 23, 2018
1 parent 968ce9a commit 6b72d8d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/filesys.cpp
Expand Up @@ -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
{
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6b72d8d

Please sign in to comment.