mirror of
https://github.com/libretro/RetroArch
synced 2025-03-20 01:21:03 +00:00
Merge pull request #11311 from justinweiss/3ds-file-buffering
[3DS] Increase file buffer size and savestate chunk size
This commit is contained in:
commit
be285e1f74
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user