Use path_mkdir

This commit is contained in:
twinaphex 2017-05-23 20:45:14 +02:00
parent 7b1b137866
commit 1421d1da30
4 changed files with 9 additions and 6 deletions

View File

@ -22,6 +22,7 @@
#include <queues/task_queue.h>
#include <retro_stat.h>
#include <file/file_path.h>
#include <string/stdstring.h>
#ifdef HAVE_CONFIG_H
#include "../../config.h"
@ -158,7 +159,7 @@ static void frontend_emscripten_get_env(int *argc, char *argv[],
{
const char *dir_path = g_defaults.dirs[i];
if (!string_is_empty(dir_path))
check_defaults_dir_create_dir(dir_path);
path_mkdir(dir_path);
}
snprintf(g_defaults.settings.menu, sizeof(g_defaults.settings.menu), "rgui");

View File

@ -225,7 +225,7 @@ static void frontend_psp_get_environment_settings(int *argc, char *argv[],
{
const char *dir_path = g_defaults.dirs[i];
if (!string_is_empty(dir_path))
check_defaults_dir_create_dir(dir_path);
path_mkdir(dir_path);
}
}

View File

@ -20,11 +20,12 @@
#include <libgen.h>
#include <dirent.h>
#include <boolean.h>
#include <bps/bps.h>
#include <packageinfo.h>
#include <boolean.h>
#include <string/stdstring.h>
#include "../../defaults.h"
#include "../../dynamic.h"
#include "../../verbosity.h"
@ -159,7 +160,7 @@ static void frontend_qnx_get_environment_settings(int *argc, char *argv[],
{
const char *dir_path = g_defaults.dirs[i];
if (!string_is_empty(dir_path))
check_defaults_dir_create_dir(dir_path);
path_mkdir(dir_path);
}
/* set glui as default menu */

View File

@ -21,6 +21,7 @@
#include <boolean.h>
#include <file/file_path.h>
#include <string/stdstring.h>
#ifndef IS_SALAMANDER
#include <lists/file_list.h>
@ -118,7 +119,7 @@ static void frontend_wiiu_get_environment_settings(int *argc, char *argv[],
{
const char *dir_path = g_defaults.dirs[i];
if (!string_is_empty(dir_path))
check_defaults_dir_create_dir(dir_path);
path_mkdir(dir_path);
}
}