mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-10 11:51:52 +00:00
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
@ -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…
Reference in New Issue
Block a user