Skip to content

Commit 031fd9d

Browse files
committed
Revert "playlist: defensive check for when file is temporarily unavailable"
This reverts commit 569b8d9.
1 parent d197d89 commit 031fd9d

1 file changed

Lines changed: 1 addition & 13 deletions

File tree

playlist.c

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
#include <stdlib.h>
1919
#include <string.h>
2020
#include <ctype.h>
21-
#include <errno.h>
2221

2322
#include <libretro.h>
2423
#include <boolean.h>
@@ -2589,20 +2588,9 @@ static bool playlist_read_file(playlist_t *playlist)
25892588
#endif
25902589

25912590
/* If playlist file does not exist,
2592-
* create an empty playlist instead.
2593-
* Any other error (EMFILE, EACCES, EIO…) must fail the read —
2594-
* otherwise a transient open failure produces an empty playlist
2595-
* that later overwrites a valid file on disk. */
2591+
* create an empty playlist instead */
25962592
if (!file)
2597-
{
2598-
if (errno != ENOENT)
2599-
{
2600-
RARCH_ERR("[Playlist] Failed to open \"%s\" for read: %s.\n",
2601-
playlist->config.path, strerror(errno));
2602-
return false;
2603-
}
26042593
return true;
2605-
}
26062594

26072595
if (intfstream_is_compressed(file))
26082596
playlist->flags |= CNT_PLAYLIST_FLG_COMPRESSED;

0 commit comments

Comments
 (0)