Get rid of RFILE_MODE_READ_TEXT dependency for config file/playlist
This commit is contained in:
parent
e07ed18105
commit
95cc8e12d2
|
@ -392,7 +392,7 @@ static config_file_t *config_file_new_internal(
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
conf->include_depth = depth;
|
conf->include_depth = depth;
|
||||||
file = filestream_open(path, RFILE_MODE_READ_TEXT, 0x4000);
|
file = filestream_open(path, RFILE_MODE_READ, 0x4000);
|
||||||
|
|
||||||
if (!file)
|
if (!file)
|
||||||
{
|
{
|
||||||
|
|
|
@ -493,7 +493,7 @@ static bool playlist_read_file(
|
||||||
unsigned i;
|
unsigned i;
|
||||||
char buf[PLAYLIST_ENTRIES][1024];
|
char buf[PLAYLIST_ENTRIES][1024];
|
||||||
RFILE *file = filestream_open(
|
RFILE *file = filestream_open(
|
||||||
path, RFILE_MODE_READ_TEXT, -1);
|
path, RFILE_MODE_READ, -1);
|
||||||
|
|
||||||
for (i = 0; i < PLAYLIST_ENTRIES; i++)
|
for (i = 0; i < PLAYLIST_ENTRIES; i++)
|
||||||
buf[i][0] = '\0';
|
buf[i][0] = '\0';
|
||||||
|
|
Loading…
Reference in New Issue