IOS/ES: Fix GetStoredContentsFromTMD

We were checking for the wrong files (title content directory instead
of checking whether the content files themselves exist)... Whoops!
This commit is contained in:
Léo Lam 2017-03-12 14:32:01 +01:00
parent 7932efc78a
commit 2111e4dd92

View File

@ -758,7 +758,8 @@ static std::vector<IOS::ES::Content> GetStoredContentsFromTMD(const IOS::ES::TMD
return path != "unk" && File::Exists(path);
}
return File::Exists(
Common::GetTitleContentPath(tmd.GetTitleId(), Common::FROM_SESSION_ROOT));
Common::GetTitleContentPath(tmd.GetTitleId(), Common::FROM_SESSION_ROOT) +
StringFromFormat("%08x.app", content.id));
});
return stored_contents;