mirror of
https://github.com/jakcron/nstool
synced 2024-11-23 05:59:29 +00:00
[nx] Standardise const/enum ordering.
This commit is contained in:
parent
38b93cb317
commit
22072399de
6 changed files with 22 additions and 22 deletions
|
@ -5,6 +5,9 @@ namespace nx
|
||||||
{
|
{
|
||||||
namespace fac
|
namespace fac
|
||||||
{
|
{
|
||||||
|
static const uint32_t kFacFormatVersion = 1;
|
||||||
|
static const size_t kSectionAlignSize = 4;
|
||||||
|
|
||||||
enum FsAccessFlag
|
enum FsAccessFlag
|
||||||
{
|
{
|
||||||
FSA_APPLICATION_INFO,
|
FSA_APPLICATION_INFO,
|
||||||
|
@ -30,9 +33,6 @@ namespace nx
|
||||||
FSA_DEBUG = 62,
|
FSA_DEBUG = 62,
|
||||||
FSA_FULL_PERMISSION = 63,
|
FSA_FULL_PERMISSION = 63,
|
||||||
};
|
};
|
||||||
|
|
||||||
static const uint32_t kFacFormatVersion = 1;
|
|
||||||
static const size_t kSectionAlignSize = 4;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#pragma pack(push,1)
|
#pragma pack(push,1)
|
||||||
|
|
|
@ -5,6 +5,18 @@ namespace nx
|
||||||
{
|
{
|
||||||
namespace nacp
|
namespace nacp
|
||||||
{
|
{
|
||||||
|
static const size_t kNameLength = 0x200;
|
||||||
|
static const size_t kPublisherLength = 0x100;
|
||||||
|
static const size_t kMaxLanguageCount = 16;
|
||||||
|
static const size_t kIsbnLength = 37;
|
||||||
|
static const size_t kRatingAgeCount = 32;
|
||||||
|
static const size_t kDisplayVersionLength = 16;
|
||||||
|
static const size_t kApplicationErrorCodeCategoryLength = 8;
|
||||||
|
static const size_t kLocalCommunicationIdCount = 8;
|
||||||
|
static const size_t kBcatPassphraseLength = 65;
|
||||||
|
static const size_t kPlayLogQueryableApplicationIdCount = 16;
|
||||||
|
static const int8_t kUnusedAgeRating = -1;
|
||||||
|
|
||||||
enum AocRegistrationType
|
enum AocRegistrationType
|
||||||
{
|
{
|
||||||
AOC_AllOnLaunch,
|
AOC_AllOnLaunch,
|
||||||
|
@ -142,18 +154,6 @@ namespace nx
|
||||||
VCAP_Manual,
|
VCAP_Manual,
|
||||||
VCAP_Enable
|
VCAP_Enable
|
||||||
};
|
};
|
||||||
|
|
||||||
static const size_t kNameLength = 0x200;
|
|
||||||
static const size_t kPublisherLength = 0x100;
|
|
||||||
static const size_t kMaxLanguageCount = 16;
|
|
||||||
static const size_t kIsbnLength = 37;
|
|
||||||
static const size_t kRatingAgeCount = 32;
|
|
||||||
static const size_t kDisplayVersionLength = 16;
|
|
||||||
static const size_t kApplicationErrorCodeCategoryLength = 8;
|
|
||||||
static const size_t kLocalCommunicationIdCount = 8;
|
|
||||||
static const size_t kBcatPassphraseLength = 65;
|
|
||||||
static const size_t kPlayLogQueryableApplicationIdCount = 16;
|
|
||||||
static const int8_t kUnusedAgeRating = -1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,6 @@ namespace nx
|
||||||
namespace nro
|
namespace nro
|
||||||
{
|
{
|
||||||
static const uint32_t kNroStructMagic = _MAKE_STRUCT_MAGIC("NRO0");
|
static const uint32_t kNroStructMagic = _MAKE_STRUCT_MAGIC("NRO0");
|
||||||
|
|
||||||
static const uint32_t kDefaultFormatVersion = 0;
|
static const uint32_t kDefaultFormatVersion = 0;
|
||||||
static const size_t kRoCrtSize = 8;
|
static const size_t kRoCrtSize = 8;
|
||||||
static const size_t kModuleIdSize = 32;
|
static const size_t kModuleIdSize = 32;
|
||||||
|
|
|
@ -8,6 +8,8 @@ namespace nx
|
||||||
namespace nso
|
namespace nso
|
||||||
{
|
{
|
||||||
static const uint32_t kNsoStructMagic = _MAKE_STRUCT_MAGIC("NSO0");
|
static const uint32_t kNsoStructMagic = _MAKE_STRUCT_MAGIC("NSO0");
|
||||||
|
static const uint32_t kDefaultFormatVersion = 0;
|
||||||
|
static const size_t kModuleIdSize = 32;
|
||||||
|
|
||||||
enum HeaderFlags
|
enum HeaderFlags
|
||||||
{
|
{
|
||||||
|
@ -18,9 +20,6 @@ namespace nx
|
||||||
FLAG_RO_HASH,
|
FLAG_RO_HASH,
|
||||||
FLAG_DATA_HASH
|
FLAG_DATA_HASH
|
||||||
};
|
};
|
||||||
|
|
||||||
static const uint32_t kDefaultFormatVersion = 0;
|
|
||||||
static const size_t kModuleIdSize = 32;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#pragma pack(push,1)
|
#pragma pack(push,1)
|
||||||
|
|
|
@ -5,6 +5,9 @@ namespace nx
|
||||||
{
|
{
|
||||||
namespace romfs
|
namespace romfs
|
||||||
{
|
{
|
||||||
|
static const uint64_t kRomfsHeaderAlign = 0x200;
|
||||||
|
static const uint32_t kInvalidAddr = 0xffffffff;
|
||||||
|
|
||||||
enum HeaderSectionIndex
|
enum HeaderSectionIndex
|
||||||
{
|
{
|
||||||
DIR_HASHMAP_TABLE,
|
DIR_HASHMAP_TABLE,
|
||||||
|
@ -13,9 +16,6 @@ namespace nx
|
||||||
FILE_NODE_TABLE,
|
FILE_NODE_TABLE,
|
||||||
SECTION_NUM
|
SECTION_NUM
|
||||||
};
|
};
|
||||||
|
|
||||||
static const uint64_t kRomfsHeaderAlign = 0x200;
|
|
||||||
static const uint32_t kInvalidAddr = 0xffffffff;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#pragma pack(push,1)
|
#pragma pack(push,1)
|
||||||
|
|
|
@ -15,12 +15,14 @@ namespace nx
|
||||||
static const uint32_t kHeaderEncSize = 0x70;
|
static const uint32_t kHeaderEncSize = 0x70;
|
||||||
static const uint32_t kPageSize = 0x200;
|
static const uint32_t kPageSize = 0x200;
|
||||||
static const uint32_t kUppHashLen = 8;
|
static const uint32_t kUppHashLen = 8;
|
||||||
|
/*
|
||||||
static const uint32_t kCardKeyAreaPageCount = 8;
|
static const uint32_t kCardKeyAreaPageCount = 8;
|
||||||
static const uint32_t kCardHeaderPageCount = 1;
|
static const uint32_t kCardHeaderPageCount = 1;
|
||||||
static const uint32_t kReservedAreaPageCount = 55;
|
static const uint32_t kReservedAreaPageCount = 55;
|
||||||
static const uint32_t kCertAreaStartPageAddress = kCardHeaderPageCount + kReservedAreaPageCount + kCardKeyAreaPageCount;
|
static const uint32_t kCertAreaStartPageAddress = kCardHeaderPageCount + kReservedAreaPageCount + kCardKeyAreaPageCount;
|
||||||
static const uint32_t kCertAreaPageCount = 64;
|
static const uint32_t kCertAreaPageCount = 64;
|
||||||
static const uint32_t kNormalAreaStartPageAddress = kReservedAreaPageCount + kCertAreaPageCount + kCardHeaderPageCount + kCardKeyAreaPageCount;
|
static const uint32_t kNormalAreaStartPageAddress = kReservedAreaPageCount + kCertAreaPageCount + kCardHeaderPageCount + kCardKeyAreaPageCount;
|
||||||
|
*/
|
||||||
|
|
||||||
const std::string kUpdatePartitionStr = "update";
|
const std::string kUpdatePartitionStr = "update";
|
||||||
const std::string kLogoPartitionStr = "logo";
|
const std::string kLogoPartitionStr = "logo";
|
||||||
|
|
Loading…
Reference in a new issue