Fix libretrodb_open - change mode to RFILE_MODE_READ - use

buffered I/O by default
This commit is contained in:
twinaphex 2015-09-18 03:25:53 +02:00
parent b51e418c4c
commit a547fdef50
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@
#include <fcntl.h>
#endif
#if 0
#if 1
#define HAVE_BUFFERED_IO 1
#endif

View File

@ -191,7 +191,7 @@ int libretrodb_open(const char *path, libretrodb_t *db)
libretrodb_header_t header;
libretrodb_metadata_t md;
int rv;
RFILE *fd = retro_fopen(path, RFILE_MODE_READ_WRITE, -1);
RFILE *fd = retro_fopen(path, RFILE_MODE_READ, -1);
if (!fd)
return -errno;