Allow Android platforms to read from .apk files via the RWOPS interface.
Fixes Bugzilla #1261. Thanks to Tim Angus for the patch!
This commit is contained in:
parent
58faae483b
commit
247346d526
5 changed files with 276 additions and 2 deletions
|
@ -82,7 +82,21 @@ typedef struct SDL_RWops
|
|||
Uint32 type;
|
||||
union
|
||||
{
|
||||
#ifdef __WIN32__
|
||||
#if defined(ANDROID)
|
||||
struct
|
||||
{
|
||||
void *fileName;
|
||||
void *fileNameRef;
|
||||
void *inputStream;
|
||||
void *inputStreamRef;
|
||||
void *skipMethod;
|
||||
void *readableByteChannel;
|
||||
void *readableByteChannelRef;
|
||||
void *readMethod;
|
||||
long position;
|
||||
int size;
|
||||
} androidio;
|
||||
#elif defined(__WIN32__)
|
||||
struct
|
||||
{
|
||||
SDL_bool append;
|
||||
|
@ -95,6 +109,7 @@ typedef struct SDL_RWops
|
|||
} buffer;
|
||||
} windowsio;
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_STDIO_H
|
||||
struct
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue