ncm: rights ids were added in 2.0.0

This commit is contained in:
Michael Scire 2020-07-08 16:02:47 -07:00
parent bffd553b80
commit 852c039f70
2 changed files with 18 additions and 16 deletions

View file

@ -593,7 +593,7 @@ namespace ams::ncm {
R_UNLESS(std::memcmp(hash, content_info->digest.data, crypto::Sha256Generator::HashSize) == 0, ncm::ResultInvalidContentHash());
}
if (!(this->config & InstallConfig_IgnoreTicket)) {
if (hos::GetVersion() >= hos::Version_2_0_0 && !(this->config & InstallConfig_IgnoreTicket)) {
ncm::RightsId rights_id;
{
/* Open the content storage and obtain the rights id. */