mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-04-23 13:04:50 +00:00
Merge f0d14ad87a
into 461105a501
This commit is contained in:
commit
58888fced7
3 changed files with 9 additions and 5 deletions
|
@ -52,7 +52,7 @@ uint32_t configitem_get(enum ConfigItem item, uint64_t *p_outvalue) {
|
|||
break;
|
||||
case CONFIGITEM_VERSION:
|
||||
/* Always returns maxver - 1 on hardware. */
|
||||
*p_outvalue = PACKAGE2_MAXVER_400_CURRENT - 1;
|
||||
*p_outvalue = PACKAGE2_MAXVER_CURRENT - 1;
|
||||
break;
|
||||
case CONFIGITEM_HARDWARETYPE:
|
||||
*p_outvalue = fuse_get_hardware_type();
|
||||
|
|
|
@ -271,7 +271,7 @@ static bool validate_package2_metadata(package2_meta_t *metadata) {
|
|||
|
||||
/* Perform version checks. */
|
||||
/* 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_400_CURRENT) {
|
||||
if (metadata->version_max >= PACKAGE2_MINVER_THEORETICAL && metadata->version_min < PACKAGE2_MAXVER_CURRENT) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
@ -30,18 +30,22 @@
|
|||
#define PACKAGE2_SIZE_MAX 0x7FC000
|
||||
#define PACKAGE2_SECTION_MAX 0x3
|
||||
|
||||
#define PACKAGE2_MINVER_THEORETICAL 0x0
|
||||
#define PACKAGE2_MAXVER_100 0x2
|
||||
#define PACKAGE2_MAXVER_200 0x3
|
||||
#define PACKAGE2_MAXVER_300 0x4
|
||||
#define PACKAGE2_MAXVER_302 0x5
|
||||
#define PACKAGE2_MAXVER_400_CURRENT 0x6
|
||||
#define PACKAGE2_MAXVER_400 0x6
|
||||
/* NOTE: This define should be updated if a newer MAXVER is added */
|
||||
#define PACKAGE2_MAXVER_CURRENT PACKAGE2_MAXVER_400
|
||||
|
||||
#define PACKAGE2_MINVER_THEORETICAL 0x0
|
||||
#define PACKAGE2_MINVER_100 0x3
|
||||
#define PACKAGE2_MINVER_200 0x4
|
||||
#define PACKAGE2_MINVER_300 0x5
|
||||
#define PACKAGE2_MINVER_302 0x6
|
||||
#define PACKAGE2_MINVER_400_CURRENT 0x7
|
||||
#define PACKAGE2_MINVER_400 0x7
|
||||
/* NOTE: This define should be updated if a newer MINVER is added */
|
||||
#define PACKAGE2_MINVER_CURRENT PACKAGE2_MINVER_400
|
||||
|
||||
|
||||
#pragma pack(push, 1)
|
||||
|
|
Loading…
Add table
Reference in a new issue