Fixes bug 1696, thanks Paul Geerts!
Also adds a bit of information about asset loading on Android.
This commit is contained in:
parent
a971c6b291
commit
09cbdb12c9
2 changed files with 15 additions and 0 deletions
|
@ -613,6 +613,9 @@ static int Android_JNI_FileOpen(SDL_RWops* ctx)
|
|||
descriptor = mEnv->GetFieldID(fdCls, "descriptor", "I");
|
||||
ctx->hidden.androidio.fd = mEnv->GetIntField(fd, descriptor);
|
||||
|
||||
// Seek to the correct offset in the file.
|
||||
lseek(ctx->hidden.androidio.fd, (off_t)ctx->hidden.androidio.offset, SEEK_SET);
|
||||
|
||||
if (false) {
|
||||
fallback:
|
||||
__android_log_print(ANDROID_LOG_DEBUG, "SDL", "Falling back to legacy InputStream method for opening file");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue