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:
parent
763d2813a0
commit
ed41e12fd2
1 changed files with 2 additions and 3 deletions
|
@ -163,11 +163,10 @@ const Common::ArchiveMemberPtr AndroidAssetArchive::getMember(const Common::Path
|
|||
}
|
||||
|
||||
Common::SeekableReadStream *AndroidAssetArchive::createReadStreamForMember(const Common::Path &path) const {
|
||||
Common::String name = path.toString();
|
||||
if (!hasFile(name)) {
|
||||
if (!hasFile(path)) {
|
||||
return nullptr;
|
||||
}
|
||||
return new AssetInputStream(_am, name);
|
||||
return new AssetInputStream(_am, path.toString());
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue