[nx] Update nacp.h

This commit is contained in:
jakcron 2018-06-11 23:00:11 +08:00
parent 4b273cccaa
commit 190097e621

View file

@ -7,130 +7,138 @@ namespace nx
{ {
namespace nacp namespace nacp
{ {
enum AddOnContentRegistrationTypeValue enum AocRegistrationType
{ {
AOC_AllOnLaunch, AOC_AllOnLaunch,
AOC_OnDemand AOC_OnDemand
}; };
enum AttributeFlagValue enum AttributeFlag
{ {
ATTR_None, ATTR_None,
ATTR_Demo, ATTR_Demo,
ATTR_RetailInteractiveDisplay ATTR_RetailInteractiveDisplay
}; };
enum CrashReportValue enum CrashReportMode
{ {
CREP_Deny, CREP_Deny,
CREP_Allow CREP_Allow
}; };
enum DataLossConfirmationValue enum DataLossConfirmation
{ {
DLOSS_None, DLOSS_None,
DLOSS_Required DLOSS_Required
}; };
enum HdcpValue enum Hdcp
{ {
HDCP_None, HDCP_None,
HDCP_Required HDCP_Required
}
enum Langauge
{
AmericanEnglish,
BritishEnglish,
Japanese,
French,
German,
LatinAmericanSpanish,
Spanish,
Italian,
Dutch,
CanadianFrench,
Portuguese,
Russian,
Korean,
TraditionalChinese,
SimplifiedChinese
}; };
enum LogoHandlingValue enum Language
{
LANG_AmericanEnglish,
LANG_BritishEnglish,
LANG_Japanese,
LANG_French,
LANG_German,
LANG_LatinAmericanSpanish,
LANG_Spanish,
LANG_Italian,
LANG_Dutch,
LANG_CanadianFrench,
LANG_Portuguese,
LANG_Russian,
LANG_Korean,
LANG_TraditionalChinese,
LANG_SimplifiedChinese
};
enum LogoHandling
{ {
LHND_Auto, LHND_Auto,
LHND_None LHND_None
}; };
enum LogoTypeValue enum LogoType
{ {
LOGO_LicensedByNintendo, LOGO_LicensedByNintendo,
LOGO_Nintendo = 2 LOGO_DistributedByNintendo,
LOGO_Nintendo
}; };
enum Organisation enum Organisation
{ {
CERO, ORGN_CERO,
GRACGCRB, ORGN_GRACGCRB,
GSRMR, ORGN_GSRMR,
ESRB, ORGN_ESRB,
ClassInd, ORGN_ClassInd,
USK, ORGN_USK,
PEGI, ORGN_PEGI,
PEGIPortugal, ORGN_PEGIPortugal,
PEGIBBFC, ORGN_PEGIBBFC,
Russian, ORGN_Russian,
ACB, ORGN_ACB,
OFLC ORGN_OFLC
}; };
enum ParentalControlFlagValue enum ParentalControlFlag
{ {
PC_None, PC_None,
PC_FreeCommunication PC_FreeCommunication
}; };
enum PlayLogPolicyValue enum PlayLogPolicy
{ {
PLP_All, PLP_All,
PLP_LogOnly, PLP_LogOnly,
PLP_None PLP_None
}; };
enum PlayLogQueryCapabilityValue enum PlayLogQueryCapability
{ {
PLQC_None, PLQC_None,
PLQC_Whitelist, PLQC_Whitelist,
PLQC_All PLQC_All
}; };
enum RepairFlagValue enum RepairFlag
{ {
REPF_None, REPF_None,
REPF_SuppressGameCardAccess REPF_SuppressGameCardAccess
}; };
enum RuntimeAddOnContentInstallValue enum RuntimeAocInstallMode
{ {
RTAOC_Deny, RTAOC_Deny,
RTAOC_AllowAppend RTAOC_AllowAppend
}; };
enum ScreenshotValue enum ScreenshotMode
{ {
SCRN_Allow, SCRN_Allow,
SCRN_Deny SCRN_Deny
}; };
enum StartupUserAccountValue enum StartupUserAccount
{ {
USER_None, USER_None,
USER_Required, USER_Required,
USER_RequiredWithNetworkServiceAccountAvailable USER_RequiredWithNetworkServiceAccountAvailable
}; };
enum VideoCaptureValue enum TouchScreenUsageMode
{
TOUCH_None,
TOUCH_Supported,
TOUCH_Required,
};
enum VideoCaptureMode
{ {
VCAP_Disable, VCAP_Disable,
VCAP_Manual, VCAP_Manual,
@ -146,8 +154,8 @@ namespace nx
static const size_t kApplicationErrorCodeCategoryLength = 8; static const size_t kApplicationErrorCodeCategoryLength = 8;
static const size_t kLocalCommunicationIdCount = 8; static const size_t kLocalCommunicationIdCount = 8;
static const size_t kBcatPassphraseLength = 65; static const size_t kBcatPassphraseLength = 65;
static const size_t kReservedForUserAccountSaveDataOperationLength = 6;
static const size_t kPlayLogQueryableApplicationIdCount = 16; static const size_t kPlayLogQueryableApplicationIdCount = 16;
static const int8_t kUnusedAgeRating = -1;
} }
@ -156,14 +164,14 @@ namespace nx
{ {
char name[nacp::kNameLength]; char name[nacp::kNameLength];
char publisher[nacp::kPublisherLength]; char publisher[nacp::kPublisherLength];
} };
struct sApplicationControlProperty struct sApplicationControlProperty
{ {
sApplicationTitle title[nacp::kMaxLanguageCount]; sApplicationTitle title[nacp::kMaxLanguageCount];
byte_t isbn[nacp::kIsbnLength] char isbn[nacp::kIsbnLength];
byte_t startup_user_account; byte_t startup_user_account;
byte_t reserved_00; byte_t touch_screen_usage;
byte_t add_on_content_registration_type; byte_t add_on_content_registration_type;
le_uint32_t attribute_flag; le_uint32_t attribute_flag;
le_uint32_t supported_language_flag; le_uint32_t supported_language_flag;
@ -182,18 +190,18 @@ namespace nx
le_uint64_t device_save_data_size; le_uint64_t device_save_data_size;
le_uint64_t device_save_data_journal_size; le_uint64_t device_save_data_journal_size;
le_uint64_t bcat_delivery_cache_storage_size; le_uint64_t bcat_delivery_cache_storage_size;
byte_t application_error_code_category[nacp::kApplicationErrorCodeCategoryLength]; char application_error_code_category[nacp::kApplicationErrorCodeCategoryLength];
le_uint64_t local_communication_id[nacp::kLocalCommunicationIdCount]; le_uint64_t local_communication_id[nacp::kLocalCommunicationIdCount];
byte_t logo_type; byte_t logo_type;
byte_t logo_handling; byte_t logo_handling;
byte_t runtime_add_on_content_install; byte_t runtime_add_on_content_install;
byte_t reserved_01[3]; byte_t reserved_00[3];
byte_t crash_report; byte_t crash_report;
byte_t hdcp; byte_t hdcp;
le_uint64_t seed_for_pseudo_device_id; le_uint64_t seed_for_pseudo_device_id;
byte_t bcat_passphrase[nacp::kBcatPassphraseLength]; char bcat_passphrase[nacp::kBcatPassphraseLength];
byte_t reserved_02; byte_t reserved_01;
byte_t reserved_for_user_account_save_data_operation[nacp::kReservedForUserAccountSaveDataOperationLength]; byte_t reserved_02[6]; //reserved_for_user_account_save_data_operation
le_uint64_t user_account_save_data_size_max; le_uint64_t user_account_save_data_size_max;
le_uint64_t user_account_save_data_journal_size_max; le_uint64_t user_account_save_data_journal_size_max;
le_uint64_t device_save_data_size_max; le_uint64_t device_save_data_size_max;
@ -203,11 +211,12 @@ namespace nx
le_uint64_t cache_storage_journal_size; le_uint64_t cache_storage_journal_size;
le_uint64_t cache_storage_data_and_journal_size_max; le_uint64_t cache_storage_data_and_journal_size_max;
le_uint16_t cache_storage_index; le_uint16_t cache_storage_index;
le_uint64_t play_log_queryable_application_id[kPlayLogQueryableApplicationIdCount]; byte_t reserved_03[6];
le_uint64_t play_log_queryable_application_id[nacp::kPlayLogQueryableApplicationIdCount];
byte_t play_log_query_capability; byte_t play_log_query_capability;
byte_t repair_flag; byte_t repair_flag;
byte_t program_index; byte_t program_index;
byte_t reserved_03[0xDED]; byte_t reserved_04[0xDED];
}; };
#pragma pack(pop) #pragma pack(pop)
} }