diff --git a/libretro-common/streams/file_stream.c b/libretro-common/streams/file_stream.c index cadcfd6eb0..f915c26b16 100644 --- a/libretro-common/streams/file_stream.c +++ b/libretro-common/streams/file_stream.c @@ -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) diff --git a/libretro-common/vfs/vfs_implementation.c b/libretro-common/vfs/vfs_implementation.c index 62bc8b851a..3704dd9479 100644 --- a/libretro-common/vfs/vfs_implementation.c +++ b/libretro-common/vfs/vfs_implementation.c @@ -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); -}