Implement filestream_getc for PSP/Vita by just calling filestream_read

instead
This commit is contained in:
twinaphex 2016-06-04 03:42:55 +02:00
parent b88db89b89
commit 563089558b

View File

@ -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