Merge pull request #11383 from noahpistilli/fix-wsc

Fix ESDevice::GetTitlesWithTickets always returning 0 titles owned
This commit is contained in:
Léo Lam 2022-12-27 18:32:07 +01:00 committed by GitHub
commit 1f1474f8ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -163,8 +163,8 @@ std::vector<u64> ESDevice::GetTitlesWithTickets() const
const std::string name_without_ext = file_name.substr(0, 8);
if (fs->ReadDirectory(PID_KERNEL, PID_KERNEL,
fmt::format("/ticket/{}/{}", title_type, file_name)) ||
!IsValidPartOfTitleID(name_without_ext) || name_without_ext + ".tik" != file_name ||
name_without_ext + ".tv1" != file_name)
!IsValidPartOfTitleID(name_without_ext) ||
(name_without_ext + ".tik" != file_name && name_without_ext + ".tv1" != file_name))
{
continue;
}