From 1421d1da30be8c76411e41d962995c21ff18234c Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 23 May 2017 20:45:14 +0200 Subject: [PATCH] Use path_mkdir --- frontend/drivers/platform_emscripten.c | 3 ++- frontend/drivers/platform_psp.c | 2 +- frontend/drivers/platform_qnx.c | 7 ++++--- frontend/drivers/platform_wiiu.c | 3 ++- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/frontend/drivers/platform_emscripten.c b/frontend/drivers/platform_emscripten.c index 0ebc2d6ac6..9784ece3cd 100644 --- a/frontend/drivers/platform_emscripten.c +++ b/frontend/drivers/platform_emscripten.c @@ -22,6 +22,7 @@ #include #include #include +#include #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"); diff --git a/frontend/drivers/platform_psp.c b/frontend/drivers/platform_psp.c index d9f4fb1776..93561eaf53 100644 --- a/frontend/drivers/platform_psp.c +++ b/frontend/drivers/platform_psp.c @@ -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); } } diff --git a/frontend/drivers/platform_qnx.c b/frontend/drivers/platform_qnx.c index 64ab2bc4c1..b115e22520 100644 --- a/frontend/drivers/platform_qnx.c +++ b/frontend/drivers/platform_qnx.c @@ -20,11 +20,12 @@ #include #include -#include - #include #include +#include +#include + #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 */ diff --git a/frontend/drivers/platform_wiiu.c b/frontend/drivers/platform_wiiu.c index a608e4e4b1..27a92b4af2 100644 --- a/frontend/drivers/platform_wiiu.c +++ b/frontend/drivers/platform_wiiu.c @@ -21,6 +21,7 @@ #include #include +#include #ifndef IS_SALAMANDER #include @@ -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); } }