wiiu: buffer stdio RWops

This commit is contained in:
GaryOderNichts
2021-01-20 20:16:31 +01:00
parent ecef835577
commit 7d9be9e2fc
3 changed files with 20 additions and 0 deletions

View File

@@ -479,4 +479,10 @@ typedef unsigned int uintptr_t;
# endif /* !_STDINT_H_ && !HAVE_STDINT_H */
#endif /* __WIN32__ */
#if defined(__WIIU__)
/* buffer files using setvbuf */
#define SDL_USE_FILE_BUFFER 1
#define SDL_FILE_BUFFER_SIZE (128*1024)
#endif
#endif /* SDL_config_h_ */

View File

@@ -125,6 +125,9 @@ typedef struct SDL_RWops
{
SDL_bool autoclose;
FILE *fp;
#ifdef SDL_USE_FILE_BUFFER
char *buffer;
#endif
} stdio;
#endif
struct