mirror of
https://github.com/yawut/SDL.git
synced 2026-08-22 16:55:29 -05:00
wiiu: buffer stdio RWops
This commit is contained in:
@@ -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_ */
|
||||
|
||||
@@ -125,6 +125,9 @@ typedef struct SDL_RWops
|
||||
{
|
||||
SDL_bool autoclose;
|
||||
FILE *fp;
|
||||
#ifdef SDL_USE_FILE_BUFFER
|
||||
char *buffer;
|
||||
#endif
|
||||
} stdio;
|
||||
#endif
|
||||
struct
|
||||
|
||||
Reference in New Issue
Block a user