summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorSketch <75850871+SketchMaster2001@users.noreply.github.com>2022-12-27 12:14:16 -0500
committerSketch <75850871+SketchMaster2001@users.noreply.github.com>2022-12-27 12:18:44 -0500
commit929fba08e733ceb02e51cbeb684a50103865e2da (patch)
treed0d2e549d8bbfe1aedc16eff03153e0c8bff4df3 /Source/Core
parent529909fe901ee81cc20fdea453e4fa355b1078f2 (diff)
Fix ESDevice::GetTitlesWithTickets always returning 0 titles owned
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/IOS/ES/NandUtils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/Core/IOS/ES/NandUtils.cpp b/Source/Core/Core/IOS/ES/NandUtils.cpp
index ffbbfe0889..e93d6148fd 100644
--- a/Source/Core/Core/IOS/ES/NandUtils.cpp
+++ b/Source/Core/Core/IOS/ES/NandUtils.cpp
@@ -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;
}