mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 06:44:27 +00:00
Pass hints to intfstream_open_file
This commit is contained in:
parent
318f17c4cb
commit
6897f9a987
@ -90,7 +90,7 @@ int detect_gc_game(intfstream_t *fd, char *game_id);
|
|||||||
|
|
||||||
int detect_serial_ascii_game(intfstream_t *fd, char *game_id);
|
int detect_serial_ascii_game(intfstream_t *fd, char *game_id);
|
||||||
|
|
||||||
static intfstream_t* intfstream_open_file(const char *path)
|
static intfstream_t* intfstream_open_file(const char *path, unsigned hints)
|
||||||
{
|
{
|
||||||
intfstream_info_t info;
|
intfstream_info_t info;
|
||||||
intfstream_t *fd = NULL;
|
intfstream_t *fd = NULL;
|
||||||
@ -101,7 +101,7 @@ static intfstream_t* intfstream_open_file(const char *path)
|
|||||||
if (!fd)
|
if (!fd)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
if (!intfstream_open(fd, path, RETRO_VFS_FILE_ACCESS_READ, RFILE_HINT_NONE))
|
if (!intfstream_open(fd, path, RETRO_VFS_FILE_ACCESS_READ, hints))
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
return fd;
|
return fd;
|
||||||
@ -289,7 +289,7 @@ static bool intfstream_file_get_serial(const char *name,
|
|||||||
int rv;
|
int rv;
|
||||||
uint8_t *data = NULL;
|
uint8_t *data = NULL;
|
||||||
ssize_t file_size = -1;
|
ssize_t file_size = -1;
|
||||||
intfstream_t *fd = intfstream_open_file(name);
|
intfstream_t *fd = intfstream_open_file(name, RFILE_HINT_NONE);
|
||||||
|
|
||||||
if (!fd)
|
if (!fd)
|
||||||
return 0;
|
return 0;
|
||||||
@ -432,7 +432,7 @@ static bool intfstream_file_get_crc(const char *name,
|
|||||||
size_t offset, size_t size, uint32_t *crc)
|
size_t offset, size_t size, uint32_t *crc)
|
||||||
{
|
{
|
||||||
int rv;
|
int rv;
|
||||||
intfstream_t *fd = intfstream_open_file(name);
|
intfstream_t *fd = intfstream_open_file(name, RFILE_HINT_NONE);
|
||||||
uint8_t *data = NULL;
|
uint8_t *data = NULL;
|
||||||
ssize_t file_size = -1;
|
ssize_t file_size = -1;
|
||||||
|
|
||||||
@ -574,7 +574,7 @@ static void task_database_cue_prune(database_info_handle_t *db,
|
|||||||
{
|
{
|
||||||
size_t i;
|
size_t i;
|
||||||
char *path = (char *)malloc(PATH_MAX_LENGTH + 1);
|
char *path = (char *)malloc(PATH_MAX_LENGTH + 1);
|
||||||
intfstream_t *fd = intfstream_open_file(name);
|
intfstream_t *fd = intfstream_open_file(name, RFILE_HINT_NONE);
|
||||||
|
|
||||||
if (!fd)
|
if (!fd)
|
||||||
goto end;
|
goto end;
|
||||||
@ -606,7 +606,7 @@ static void gdi_prune(database_info_handle_t *db, const char *name)
|
|||||||
{
|
{
|
||||||
size_t i;
|
size_t i;
|
||||||
char *path = (char *)malloc(PATH_MAX_LENGTH + 1);
|
char *path = (char *)malloc(PATH_MAX_LENGTH + 1);
|
||||||
intfstream_t *fd = intfstream_open_file(name);
|
intfstream_t *fd = intfstream_open_file(name, RFILE_HINT_NONE);
|
||||||
|
|
||||||
if (!fd)
|
if (!fd)
|
||||||
goto end;
|
goto end;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user