mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-12-22 20:31:14 +00:00
exosphere: Add package2 support for 6.0.0
This commit is contained in:
parent
f603dbfc98
commit
11159f5fa9
2 changed files with 6 additions and 4 deletions
|
@ -304,7 +304,7 @@ static bool validate_package2_metadata(package2_meta_t *metadata) {
|
||||||
|
|
||||||
/* Perform version checks. */
|
/* Perform version checks. */
|
||||||
/* We will be compatible with all package2s released before current, but not newer ones. */
|
/* We will be compatible with all package2s released before current, but not newer ones. */
|
||||||
if (metadata->version_max >= PACKAGE2_MINVER_THEORETICAL && metadata->version_min < PACKAGE2_MAXVER_500_CURRENT) {
|
if (metadata->version_max >= PACKAGE2_MINVER_THEORETICAL && metadata->version_min < PACKAGE2_MAXVER_600_CURRENT) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -331,7 +331,7 @@ static uint32_t decrypt_and_validate_header(package2_header_t *header) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Ensure we successfully decrypted the header. */
|
/* Ensure we successfully decrypted the header. */
|
||||||
if (mkey_rev > mkey_get_revision()) {
|
if (mkey_rev > mkey_get_revision()) {
|
||||||
panic(0xFAF00003);
|
panic(0xFAF00003);
|
||||||
}
|
}
|
||||||
} else if (!validate_package2_metadata(&header->metadata)) {
|
} else if (!validate_package2_metadata(&header->metadata)) {
|
||||||
|
|
|
@ -66,14 +66,16 @@ static inline uintptr_t get_nx_bootloader_mailbox_base(void) {
|
||||||
#define PACKAGE2_MAXVER_300 0x4
|
#define PACKAGE2_MAXVER_300 0x4
|
||||||
#define PACKAGE2_MAXVER_302 0x5
|
#define PACKAGE2_MAXVER_302 0x5
|
||||||
#define PACKAGE2_MAXVER_400_410 0x6
|
#define PACKAGE2_MAXVER_400_410 0x6
|
||||||
#define PACKAGE2_MAXVER_500_CURRENT 0x7
|
#define PACKAGE2_MAXVER_500_510 0x7
|
||||||
|
#define PACKAGE2_MAXVER_600_CURRENT 0x8
|
||||||
|
|
||||||
#define PACKAGE2_MINVER_100 0x3
|
#define PACKAGE2_MINVER_100 0x3
|
||||||
#define PACKAGE2_MINVER_200 0x4
|
#define PACKAGE2_MINVER_200 0x4
|
||||||
#define PACKAGE2_MINVER_300 0x5
|
#define PACKAGE2_MINVER_300 0x5
|
||||||
#define PACKAGE2_MINVER_302 0x6
|
#define PACKAGE2_MINVER_302 0x6
|
||||||
#define PACKAGE2_MINVER_400_410 0x7
|
#define PACKAGE2_MINVER_400_410 0x7
|
||||||
#define PACKAGE2_MINVER_500_CURRENT 0x8
|
#define PACKAGE2_MINVER_500_510 0x8
|
||||||
|
#define PACKAGE2_MINVER_600_CURRENT 0x9
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
union {
|
union {
|
||||||
|
|
Loading…
Reference in a new issue