changeset 6629 | 8e2c731103e6 |
parent 6430 | 48d519500f7e |
child 6633 | e36b94438fcf |
--- a/src/file/SDL_rwops.c Thu Nov 01 19:08:12 2012 -0700 +++ b/src/file/SDL_rwops.c Fri Nov 02 00:35:48 2012 -0700 @@ -427,6 +427,17 @@ return NULL; } #if defined(ANDROID) +#ifdef HAVE_STDIO_H + /* Try to open the file on the filesystem first */ + { + FILE *fp = fopen(file, mode); + if (fp) { + return SDL_RWFromFP(fp, 1); + } + } +#endif + + /* Try to open the file from the asset system */ rwops = SDL_AllocRW(); if (!rwops) return NULL; /* SDL_SetError already setup by SDL_AllocRW() */