Skip to content
Permalink
Browse files

Android: Use correct temporary path (#7463)

  • Loading branch information...
stujones11 authored and SmallJoker committed Jun 23, 2018
1 parent 968ce9a commit 6b72d8d090d001737f18561ae5e036a440a01cbb
Showing with 4 additions and 1 deletion.
  1. +4 −1 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

0 comments on commit 6b72d8d

Please sign in to comment.
You can’t perform that action at this time.