mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 21:32:45 +00:00
(paths.c) Cleanups - string cannot be empty at this point
This commit is contained in:
parent
435c80a844
commit
2509ee9646
6
paths.c
6
paths.c
@ -94,8 +94,7 @@ void path_set_redirect(void)
|
||||
|
||||
/* If path doesn't exist, try to create it,
|
||||
* if everything fails revert to the original path. */
|
||||
if(!path_is_directory(new_savefile_dir)
|
||||
&& !string_is_empty(new_savefile_dir))
|
||||
if(!path_is_directory(new_savefile_dir))
|
||||
{
|
||||
path_mkdir(new_savefile_dir);
|
||||
if(!path_is_directory(new_savefile_dir))
|
||||
@ -121,8 +120,7 @@ void path_set_redirect(void)
|
||||
|
||||
/* If path doesn't exist, try to create it.
|
||||
* If everything fails, revert to the original path. */
|
||||
if(!path_is_directory(new_savestate_dir) &&
|
||||
!string_is_empty(new_savestate_dir))
|
||||
if(!path_is_directory(new_savestate_dir))
|
||||
{
|
||||
path_mkdir(new_savestate_dir);
|
||||
if(!path_is_directory(new_savestate_dir))
|
||||
|
Loading…
x
Reference in New Issue
Block a user