hos::Version: rename enum members

This commit is contained in:
Michael Scire committed 2020-04-13 22:19:44 -07:00
1 parent 79b9e07ee9
commit 6719abec65
78 files changed
+304 -302

No files matched your search

+2 -2
View File
@@ -110,7 +110,7 @@ namespace ams::ro::impl {
/* Helper functions. */
Result GetCertificationModulus(const u8 **out, u32 key_generation) {
if (hos::GetVersion() >= hos::Version_910) {
if (hos::GetVersion() >= hos::Version_9_1_0) {
R_UNLESS(key_generation <= KeyGenerationMax910, ro::ResultNotAuthorized());
} else {
R_UNLESS(key_generation <= KeyGenerationMax100, ro::ResultNotAuthorized());
@@ -182,7 +182,7 @@ namespace ams::ro::impl {
R_UNLESS(header->GetProgramId() == program_id, ResultInvalidNrr());
/* Check type. */
if (hos::GetVersion() >= hos::Version_700 && enforce_type) {
if (hos::GetVersion() >= hos::Version_7_0_0 && enforce_type) {
R_UNLESS(header->GetType() == expected_type, ResultInvalidNrrType());
}
}