Use path_is_directory to check if directories exist instead of

filestream_exists
This commit is contained in:
twinaphex 2019-04-22 02:43:09 +02:00
parent 33e5a92867
commit c38ed7f843
3 changed files with 5 additions and 5 deletions

View File

@ -4157,7 +4157,7 @@ bool config_save_overrides(int override_type)
fill_pathname_join(override_directory, config_directory, core_name,
path_size);
if (!filestream_exists(override_directory))
if (!path_is_directory(override_directory))
path_mkdir(override_directory);
/* Concatenate strings into full paths for core_path, game_path */

View File

@ -2442,7 +2442,7 @@ static int generic_action_ok_shader_preset_save(const char *path,
core_name,
sizeof(directory));
}
if (!filestream_exists(directory))
if (!path_is_directory(directory))
path_mkdir(directory);
switch (action_type)
@ -2544,7 +2544,7 @@ static int generic_action_ok_remap_file_operation(const char *path,
break;
}
if (!filestream_exists(directory))
if (!path_is_directory(directory))
path_mkdir(directory);
if (action_type < ACTION_OK_REMAP_FILE_REMOVE_CORE)
@ -3516,7 +3516,7 @@ void cb_generic_download(retro_task_t *task,
dirname,
sizeof(shaderdir));
if (!filestream_exists(shaderdir) && !path_mkdir(shaderdir))
if (!path_is_directory(shaderdir) && !path_mkdir(shaderdir))
goto finish;
dir_path = shaderdir;

View File

@ -707,7 +707,7 @@ void ShaderParamsDialog::saveShaderPreset(const char *path, unsigned action_type
sizeof(directory));
}
if (!filestream_exists(directory))
if (!path_is_directory(directory))
path_mkdir(directory);
switch (action_type)