ANDROID: Do not try to create an asset archive stream if the file is not in the asset
This commit is contained in:
parent
b0fd0d3edc
commit
16d312f661
1 changed files with 3 additions and 0 deletions
|
@ -162,6 +162,9 @@ const Common::ArchiveMemberPtr AndroidAssetArchive::getMember(const Common::Stri
|
|||
}
|
||||
|
||||
Common::SeekableReadStream *AndroidAssetArchive::createReadStreamForMember(const Common::String &path) const {
|
||||
if (!hasFile(path)) {
|
||||
return nullptr;
|
||||
}
|
||||
return new AssetInputStream(_am, path);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue