From 929fba08e733ceb02e51cbeb684a50103865e2da Mon Sep 17 00:00:00 2001 From: Sketch <75850871+SketchMaster2001@users.noreply.github.com> Date: Tue, 27 Dec 2022 12:14:16 -0500 Subject: [PATCH] Fix ESDevice::GetTitlesWithTickets always returning 0 titles owned --- Source/Core/Core/IOS/ES/NandUtils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/Core/IOS/ES/NandUtils.cpp b/Source/Core/Core/IOS/ES/NandUtils.cpp index ffbbfe0889a1..e93d6148fdd0 100644 --- a/Source/Core/Core/IOS/ES/NandUtils.cpp +++ b/Source/Core/Core/IOS/ES/NandUtils.cpp @@ -163,8 +163,8 @@ std::vector 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; }