ANDROID: Pass Path to hasFile instead of String

hasFile was changed to take a Path, so converting it to a String and
converting it back didn't make much sense.
This commit is contained in:
djsrv 2021-08-06 22:57:29 -04:00 committed by Eugene Sandulenko
parent 763d2813a0
commit ed41e12fd2

View file

@ -163,11 +163,10 @@ const Common::ArchiveMemberPtr AndroidAssetArchive::getMember(const Common::Path
} }
Common::SeekableReadStream *AndroidAssetArchive::createReadStreamForMember(const Common::Path &path) const { Common::SeekableReadStream *AndroidAssetArchive::createReadStreamForMember(const Common::Path &path) const {
Common::String name = path.toString(); if (!hasFile(path)) {
if (!hasFile(name)) {
return nullptr; return nullptr;
} }
return new AssetInputStream(_am, name); return new AssetInputStream(_am, path.toString());
} }
#endif #endif