Android: Use system provided path for default TMPFolder setting (#8505)
authorstujones11 <stujones111@gmail.com>
Sat, 15 Jun 2019 13:12:59 +0000 (14:12 +0100)
committerSmallJoker <SmallJoker@users.noreply.github.com>
Sat, 15 Jun 2019 13:12:59 +0000 (15:12 +0200)
src/defaultsettings.cpp

index c3e676f79a1ec8c89fe6ecdb6830c3401ebce5a5..dfaad0c637b85f9458eddf27f020aea2743aee9e 100644 (file)
@@ -433,7 +433,7 @@ void set_default_settings(Settings *settings)
        settings->setDefault("fullscreen", "true");
        settings->setDefault("video_driver", "ogles1");
        settings->setDefault("touchtarget", "true");
-       settings->setDefault("TMPFolder","/sdcard/" PROJECT_NAME_C "/tmp/");
+       settings->setDefault("TMPFolder", porting::getDataPath("tmp" DIR_DELIM));
        settings->setDefault("touchscreen_threshold","20");
        settings->setDefault("fixed_virtual_joystick", "false");
        settings->setDefault("virtual_joystick_triggers_aux", "false");