From 1796d359c5b943b0d90ece778fbf3d7203eb4493 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 2 Feb 2019 16:43:17 +0100 Subject: [PATCH] Don't use setvbuf for PSP too --- libretro-common/file/config_file.c | 2 +- libretro-common/vfs/vfs_implementation.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libretro-common/file/config_file.c b/libretro-common/file/config_file.c index b92acfd0e5..3557f322ad 100644 --- a/libretro-common/file/config_file.c +++ b/libretro-common/file/config_file.c @@ -997,7 +997,7 @@ bool config_file_write(config_file_t *conf, const char *path, bool sort) return false; /* TODO: this is only useful for a few platforms, find which and add ifdef */ -#if !defined(PS2) +#if !defined(PS2) && !defined(PSP) buf = calloc(1, 0x4000); setvbuf(file, (char*)buf, _IOFBF, 0x4000); #endif diff --git a/libretro-common/vfs/vfs_implementation.c b/libretro-common/vfs/vfs_implementation.c index 23f385dac4..16838f9b43 100644 --- a/libretro-common/vfs/vfs_implementation.c +++ b/libretro-common/vfs/vfs_implementation.c @@ -410,7 +410,7 @@ libretro_vfs_implementation_file *retro_vfs_file_open_impl(const char *path, uns */ /* TODO: this is only useful for a few platforms, find which and add ifdef */ stream->fp = fp; -#if !defined(PS2) /* TODO: PS2 IMPROVEMENT */ +#if !defined(PS2) && !defined(PSP) stream->buf = (char*)calloc(1, 0x4000); setvbuf(stream->fp, stream->buf, _IOFBF, 0x4000); #endif