diff options
author | Joel Teichroeb | 2014-01-28 12:55:32 -0800 |
---|---|---|
committer | Joel Teichroeb | 2015-01-05 19:19:34 -0800 |
commit | 61e911baf8d5f4d818abbe1926be93d5c14d758d (patch) | |
tree | bff582aaf9389d91042befdb3c785bc26c8c8f07 /backends/platform/android/asset-archive.h | |
parent | 02e3e82e8210abe9f496f978917c9b134b5e0ad9 (diff) | |
download | scummvm-rg350-61e911baf8d5f4d818abbe1926be93d5c14d758d.tar.gz scummvm-rg350-61e911baf8d5f4d818abbe1926be93d5c14d758d.tar.bz2 scummvm-rg350-61e911baf8d5f4d818abbe1926be93d5c14d758d.zip |
ANDROID: Update the asset archive code to use AAssets
The AAssets API was added in android 2.3, so it also requires using
the android-9 toolchain.
Using this gives a rather large speedboost to starting the ScummVM
application.
Diffstat (limited to 'backends/platform/android/asset-archive.h')
-rw-r--r-- | backends/platform/android/asset-archive.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/backends/platform/android/asset-archive.h b/backends/platform/android/asset-archive.h index 6a0033d24e..8ae55b22c9 100644 --- a/backends/platform/android/asset-archive.h +++ b/backends/platform/android/asset-archive.h @@ -32,6 +32,8 @@ #include "common/util.h" #include "common/archive.h" +#include <android/asset_manager.h> + class AndroidAssetArchive : public Common::Archive { public: AndroidAssetArchive(jobject am); @@ -43,11 +45,9 @@ public: virtual Common::SeekableReadStream *createReadStreamForMember(const Common::String &name) const; private: - jmethodID MID_open; - jmethodID MID_openFd; - jmethodID MID_list; - - jobject _am; + AAssetManager *_am; + mutable Common::ArchiveMemberList _cachedMembers; + mutable bool _hasCached; }; #endif |