Do not append install dir for content type theme PKGs (#18765)

This commit is contained in:
Radu13 2026-05-19 20:11:44 +02:00 committed by GitHub
parent 55e17ccd3b
commit 2613d7eee7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -807,7 +807,8 @@ bool package_reader::set_install_path()
}
// TODO: Verify whether other content types require appending title ID
if (m_metadata.content_type != PKG_CONTENT_TYPE_LICENSE)
// Append title ID depending on content type
if (m_metadata.content_type != PKG_CONTENT_TYPE_THEME && m_metadata.content_type != PKG_CONTENT_TYPE_LICENSE)
dir += m_install_dir + '/';
// If false, an existing directory is being overwritten: cannot cancel the operation