Merge pull request #11311 from justinweiss/3ds-file-buffering

[3DS] Increase file buffer size and savestate chunk size
This commit is contained in:
Autechre 2020-09-10 06:18:00 +02:00 committed by GitHub
commit be285e1f74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 2 deletions

View File

@ -446,7 +446,14 @@ libretro_vfs_implementation_file *retro_vfs_file_open_impl(
*/
/* TODO: this is only useful for a few platforms,
* find which and add ifdef */
#if !defined(PSP)
#if defined(_3DS)
if (stream->scheme != VFS_SCHEME_CDROM)
{
stream->buf = (char*)calloc(1, 0x10000);
if (stream->fp)
setvbuf(stream->fp, stream->buf, _IOFBF, 0x10000);
}
#elif !defined(PSP)
if (stream->scheme != VFS_SCHEME_CDROM)
{
stream->buf = (char*)calloc(1, 0x4000);

View File

@ -58,7 +58,7 @@
#include "../managers/cheat_manager.h"
#endif
#ifdef HAVE_LIBNX
#if defined(HAVE_LIBNX) || defined(_3DS)
#define SAVE_STATE_CHUNK 4096 * 10
#else
#define SAVE_STATE_CHUNK 4096