mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-02-06 03:28:20 +00:00
Implement filestream_getc for PSP/Vita by just calling filestream_read
instead
This commit is contained in:
parent
b88db89b89
commit
563089558b
@ -291,10 +291,15 @@ char *filestream_gets(RFILE *stream, char *s, size_t len)
|
||||
|
||||
int filestream_getc(RFILE *stream)
|
||||
{
|
||||
char c;
|
||||
if (!stream)
|
||||
return 0;
|
||||
#if defined(HAVE_BUFFERED_IO)
|
||||
return fgetc(stream->fp);
|
||||
return fgetc(stream->fp);
|
||||
#elif defined(VITA) || defined(PSP)
|
||||
if(filestream_read(stream, &c, 1) == 1)
|
||||
return (int)c;
|
||||
return EOF;
|
||||
#else
|
||||
return getc(stream->fd);
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user