mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 12:32:52 +00:00
Get rid of retro_vfs_file_putc
This commit is contained in:
parent
f282044be2
commit
ef3ba4d989
@ -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)
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user