mirror of
https://github.com/libretro/RetroArch
synced 2025-02-23 15:40:35 +00:00
Cleanups - prefer path_is_valid over filestream_exists
This commit is contained in:
parent
11165a816a
commit
07d8daf048
8
dirs.c
8
dirs.c
@ -291,12 +291,10 @@ void dir_check_defaults(void)
|
||||
/* early return for people with a custom folder setup
|
||||
so it doesn't create unnecessary directories
|
||||
*/
|
||||
#ifdef ORBIS
|
||||
if (filestream_exists("host0:app/custom.ini"))
|
||||
#elif defined(ANDROID)
|
||||
if (filestream_exists("host0:app/custom.ini"))
|
||||
#if defined(ORBIS) || defined(ANDROID)
|
||||
if (path_is_valid("host0:app/custom.ini"))
|
||||
#else
|
||||
if (filestream_exists("custom.ini"))
|
||||
if (path_is_valid("custom.ini"))
|
||||
#endif
|
||||
return;
|
||||
|
||||
|
@ -138,7 +138,7 @@ static bool discord_download_avatar(
|
||||
fill_pathname_join(full_path, buf, avatar_id, sizeof(full_path));
|
||||
strlcpy(user_avatar, avatar_id, sizeof(user_avatar));
|
||||
|
||||
if(filestream_exists(full_path))
|
||||
if (path_is_valid(full_path))
|
||||
return true;
|
||||
|
||||
if (string_is_empty(avatar_id))
|
||||
|
Loading…
x
Reference in New Issue
Block a user