From 1f8f428a59daf20b66d382ea4a26b9be8d6bcf5d Mon Sep 17 00:00:00 2001 From: AniLeo Date: Sat, 18 Sep 2021 17:36:07 +0100 Subject: [PATCH] unpkg: Don't append title ID to license packages --- rpcs3/Crypto/unpkg.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rpcs3/Crypto/unpkg.cpp b/rpcs3/Crypto/unpkg.cpp index 090a316fa0..b1a1c08d7c 100644 --- a/rpcs3/Crypto/unpkg.cpp +++ b/rpcs3/Crypto/unpkg.cpp @@ -706,7 +706,9 @@ bool package_reader::extract_data(atomic_t& sync) break; } - dir += m_install_dir + '/'; + // TODO: Verify whether other content types require appending title ID + if (m_metadata.content_type != PKG_CONTENT_TYPE_LICENSE) + dir += m_install_dir + '/'; // If false, an existing directory is being overwritten: cannot cancel the operation const bool was_null = !fs::is_dir(dir);