Use path_is_directory to check if directories exist instead of
filestream_exists
This commit is contained in:
parent
33e5a92867
commit
c38ed7f843
|
@ -4157,7 +4157,7 @@ bool config_save_overrides(int override_type)
|
||||||
fill_pathname_join(override_directory, config_directory, core_name,
|
fill_pathname_join(override_directory, config_directory, core_name,
|
||||||
path_size);
|
path_size);
|
||||||
|
|
||||||
if (!filestream_exists(override_directory))
|
if (!path_is_directory(override_directory))
|
||||||
path_mkdir(override_directory);
|
path_mkdir(override_directory);
|
||||||
|
|
||||||
/* Concatenate strings into full paths for core_path, game_path */
|
/* Concatenate strings into full paths for core_path, game_path */
|
||||||
|
|
|
@ -2442,7 +2442,7 @@ static int generic_action_ok_shader_preset_save(const char *path,
|
||||||
core_name,
|
core_name,
|
||||||
sizeof(directory));
|
sizeof(directory));
|
||||||
}
|
}
|
||||||
if (!filestream_exists(directory))
|
if (!path_is_directory(directory))
|
||||||
path_mkdir(directory);
|
path_mkdir(directory);
|
||||||
|
|
||||||
switch (action_type)
|
switch (action_type)
|
||||||
|
@ -2544,7 +2544,7 @@ static int generic_action_ok_remap_file_operation(const char *path,
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!filestream_exists(directory))
|
if (!path_is_directory(directory))
|
||||||
path_mkdir(directory);
|
path_mkdir(directory);
|
||||||
|
|
||||||
if (action_type < ACTION_OK_REMAP_FILE_REMOVE_CORE)
|
if (action_type < ACTION_OK_REMAP_FILE_REMOVE_CORE)
|
||||||
|
@ -3516,7 +3516,7 @@ void cb_generic_download(retro_task_t *task,
|
||||||
dirname,
|
dirname,
|
||||||
sizeof(shaderdir));
|
sizeof(shaderdir));
|
||||||
|
|
||||||
if (!filestream_exists(shaderdir) && !path_mkdir(shaderdir))
|
if (!path_is_directory(shaderdir) && !path_mkdir(shaderdir))
|
||||||
goto finish;
|
goto finish;
|
||||||
|
|
||||||
dir_path = shaderdir;
|
dir_path = shaderdir;
|
||||||
|
|
|
@ -707,7 +707,7 @@ void ShaderParamsDialog::saveShaderPreset(const char *path, unsigned action_type
|
||||||
sizeof(directory));
|
sizeof(directory));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!filestream_exists(directory))
|
if (!path_is_directory(directory))
|
||||||
path_mkdir(directory);
|
path_mkdir(directory);
|
||||||
|
|
||||||
switch (action_type)
|
switch (action_type)
|
||||||
|
|
Loading…
Reference in New Issue