mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-15 14:59:37 +00:00
Change returntype of read_file
This commit is contained in:
parent
1a1d6a0889
commit
0752a114f3
@ -233,7 +233,7 @@ bool read_compressed_file(const char * path, void **buf,
|
||||
*
|
||||
* Returns: true if file read, false on error.
|
||||
*/
|
||||
bool read_file(const char *path, void **buf, ssize_t *length)
|
||||
int read_file(const char *path, void **buf, ssize_t *length)
|
||||
{
|
||||
#ifdef HAVE_COMPRESSION
|
||||
/* Here we check, whether the file, we are about to read is
|
||||
@ -250,7 +250,7 @@ bool read_file(const char *path, void **buf, ssize_t *length)
|
||||
return true;
|
||||
#endif
|
||||
if (read_generic_file(path, buf, length))
|
||||
return true;
|
||||
return 1;
|
||||
*length = -1;
|
||||
return false;
|
||||
return 0;
|
||||
}
|
||||
|
@ -49,7 +49,7 @@ bool read_compressed_file(const char * path, void **buf,
|
||||
*
|
||||
* Returns: true if file read, false on error.
|
||||
*/
|
||||
bool read_file(const char *path, void **buf, ssize_t *length);
|
||||
int read_file(const char *path, void **buf, ssize_t *length);
|
||||
|
||||
/**
|
||||
* write_file:
|
||||
|
Loading…
Reference in New Issue
Block a user