Fix libretrodb_open - change mode to RFILE_MODE_READ - use
buffered I/O by default
This commit is contained in:
parent
b51e418c4c
commit
a547fdef50
|
@ -38,7 +38,7 @@
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if 0
|
#if 1
|
||||||
#define HAVE_BUFFERED_IO 1
|
#define HAVE_BUFFERED_IO 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -191,7 +191,7 @@ int libretrodb_open(const char *path, libretrodb_t *db)
|
||||||
libretrodb_header_t header;
|
libretrodb_header_t header;
|
||||||
libretrodb_metadata_t md;
|
libretrodb_metadata_t md;
|
||||||
int rv;
|
int rv;
|
||||||
RFILE *fd = retro_fopen(path, RFILE_MODE_READ_WRITE, -1);
|
RFILE *fd = retro_fopen(path, RFILE_MODE_READ, -1);
|
||||||
|
|
||||||
if (!fd)
|
if (!fd)
|
||||||
return -errno;
|
return -errno;
|
||||||
|
|
Loading…
Reference in New Issue