ANDROID: Do not try to create an asset archive stream if the file is not in the asset

This commit is contained in:
Joel Teichroeb 2014-04-04 12:07:31 -07:00
parent b0fd0d3edc
commit 16d312f661

View File

@ -162,6 +162,9 @@ const Common::ArchiveMemberPtr AndroidAssetArchive::getMember(const Common::Stri
} }
Common::SeekableReadStream *AndroidAssetArchive::createReadStreamForMember(const Common::String &path) const { Common::SeekableReadStream *AndroidAssetArchive::createReadStreamForMember(const Common::String &path) const {
if (!hasFile(path)) {
return nullptr;
}
return new AssetInputStream(_am, path); return new AssetInputStream(_am, path);
} }