if using app dir and paths do not exist, create them

This commit is contained in:
radius 2015-07-11 16:32:48 -04:00
parent 5bd889ac02
commit d9b125a645

View File

@ -773,7 +773,8 @@ static void frontend_android_get_environment_settings(int *argc,
else
{
fill_pathname_join(g_defaults.core_assets_dir,
app_dir, "downloads", sizeof(g_defaults.core_assets_dir));
app_dir, "downloads", sizeof(g_defaults.core_assets_dir));
path_mkdir(g_defaults.core_assets_dir);
}
if(*screenshot_dir && test_permissions(screenshot_dir))
{
@ -784,6 +785,7 @@ static void frontend_android_get_environment_settings(int *argc,
{
fill_pathname_join(g_defaults.screenshot_dir,
app_dir, "screenshots", sizeof(g_defaults.screenshot_dir));
path_mkdir(g_defaults.screenshot_dir);
}
switch (perms)