Skip to content

Commit

Permalink
Merge pull request #11383 from noahpistilli/fix-wsc
Browse files Browse the repository at this point in the history
Fix ESDevice::GetTitlesWithTickets always returning 0 titles owned
  • Loading branch information
leoetlino committed Dec 27, 2022
2 parents 529909f + 929fba0 commit 1f1474f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Core/Core/IOS/ES/NandUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 1f1474f

Please sign in to comment.