Get rid of retro_vfs_file_putc

This commit is contained in:
twinaphex 2017-12-14 18:45:54 +01:00
parent f282044be2
commit ef3ba4d989
2 changed files with 4 additions and 12 deletions

View File

@ -278,12 +278,12 @@ ssize_t filestream_write(RFILE *stream, const void *s, size_t len)
return output;
}
/* Hack function */
int retro_vfs_file_putc(libretro_vfs_implementation_file *stream, int c);
int filestream_putc(RFILE *stream, int c)
{
return retro_vfs_file_putc((libretro_vfs_implementation_file*)stream->hfile, c);
char c_char = (char)c;
if (!stream)
return EOF;
return filestream_write(stream, &c_char, 1);
}
int filestream_vprintf(RFILE *stream, const char* format, va_list args)

View File

@ -437,11 +437,3 @@ const char *retro_vfs_file_get_path_impl(libretro_vfs_implementation_file *strea
/* TODO/FIXME - implement */
return NULL;
}
int retro_vfs_file_putc(libretro_vfs_implementation_file *stream, int c)
{
if (!stream)
return EOF;
return fputc(c, stream->fp);
}