mirror of
https://github.com/jakcron/nstool
synced 2024-11-26 23:49:36 +00:00
716 lines
No EOL
24 KiB
C++
716 lines
No EOL
24 KiB
C++
#include <cstring>
|
|
#include <nn/hac/ApplicationControlProperty.h>
|
|
|
|
nn::hac::ApplicationControlProperty::ApplicationControlProperty()
|
|
{
|
|
clear();
|
|
}
|
|
|
|
nn::hac::ApplicationControlProperty::ApplicationControlProperty(const ApplicationControlProperty& other)
|
|
{
|
|
*this = other;
|
|
}
|
|
|
|
void nn::hac::ApplicationControlProperty::operator=(const ApplicationControlProperty& other)
|
|
{
|
|
clear();
|
|
mTitle = other.mTitle;
|
|
mIsbn = other.mIsbn;
|
|
mStartupUserAccount = other.mStartupUserAccount;
|
|
mTouchScreenUsageMode = other.mTouchScreenUsageMode;
|
|
mAocRegistrationType = other.mAocRegistrationType;
|
|
mAttributeFlag = other.mAttributeFlag;
|
|
mSupportedLanguages = other.mSupportedLanguages;
|
|
mParentalControlFlag = other.mParentalControlFlag;
|
|
mScreenshotMode = other.mScreenshotMode;
|
|
mVideoCaptureMode = other.mVideoCaptureMode;
|
|
mDataLossConfirmation = other.mDataLossConfirmation;
|
|
mPlayLogPolicy = other.mPlayLogPolicy;
|
|
mPresenceGroupId = other.mPresenceGroupId;
|
|
mRatingAge = other.mRatingAge;
|
|
mDisplayVersion = other.mDisplayVersion;
|
|
mAocBaseId = other.mAocBaseId;
|
|
mSaveDatawOwnerId = other.mSaveDatawOwnerId;
|
|
mUserAccountSaveDataSize = other.mUserAccountSaveDataSize;
|
|
mDeviceSaveDataSize = other.mDeviceSaveDataSize;
|
|
mBcatDeliveryCacheStorageSize = other.mBcatDeliveryCacheStorageSize;
|
|
mApplicationErrorCodeCategory = other.mApplicationErrorCodeCategory;
|
|
mLocalCommunicationId = other.mLocalCommunicationId;
|
|
mLogoType = other.mLogoType;
|
|
mLogoHandling = other.mLogoHandling;
|
|
mRuntimeAocInstallMode = other.mRuntimeAocInstallMode;
|
|
mCrashReportMode = other.mCrashReportMode;
|
|
mHdcp = other.mHdcp;
|
|
mSeedForPsuedoDeviceId = other.mSeedForPsuedoDeviceId;
|
|
mBcatPassphase = other.mBcatPassphase;
|
|
mUserAccountSaveDataMax = other.mUserAccountSaveDataMax;
|
|
mDeviceSaveDataMax = other.mDeviceSaveDataMax;
|
|
mTemporaryStorageSize = other.mTemporaryStorageSize;
|
|
mCacheStorageSize = other.mCacheStorageSize;
|
|
mCacheStorageDataAndJournalSizeMax = other.mCacheStorageDataAndJournalSizeMax;
|
|
mCacheStorageIndexMax = other.mCacheStorageIndexMax;
|
|
mPlayLogQueryableApplicationId = other.mPlayLogQueryableApplicationId;
|
|
mPlayLogQueryCapability = other.mPlayLogQueryCapability;
|
|
mRepairFlag = other.mRepairFlag;
|
|
mProgramIndex = other.mProgramIndex;
|
|
}
|
|
|
|
bool nn::hac::ApplicationControlProperty::operator==(const ApplicationControlProperty& other) const
|
|
{
|
|
return (mTitle == other.mTitle) \
|
|
&& (mIsbn == other.mIsbn) \
|
|
&& (mStartupUserAccount == other.mStartupUserAccount) \
|
|
&& (mTouchScreenUsageMode == other.mTouchScreenUsageMode) \
|
|
&& (mAocRegistrationType == other.mAocRegistrationType) \
|
|
&& (mAttributeFlag == other.mAttributeFlag) \
|
|
&& (mSupportedLanguages == other.mSupportedLanguages) \
|
|
&& (mParentalControlFlag == other.mParentalControlFlag) \
|
|
&& (mScreenshotMode == other.mScreenshotMode) \
|
|
&& (mVideoCaptureMode == other.mVideoCaptureMode) \
|
|
&& (mDataLossConfirmation == other.mDataLossConfirmation) \
|
|
&& (mPlayLogPolicy == other.mPlayLogPolicy) \
|
|
&& (mPresenceGroupId == other.mPresenceGroupId) \
|
|
&& (mRatingAge == other.mRatingAge) \
|
|
&& (mDisplayVersion == other.mDisplayVersion) \
|
|
&& (mAocBaseId == other.mAocBaseId) \
|
|
&& (mSaveDatawOwnerId == other.mSaveDatawOwnerId) \
|
|
&& (mUserAccountSaveDataSize == other.mUserAccountSaveDataSize) \
|
|
&& (mDeviceSaveDataSize == other.mDeviceSaveDataSize) \
|
|
&& (mBcatDeliveryCacheStorageSize == other.mBcatDeliveryCacheStorageSize) \
|
|
&& (mApplicationErrorCodeCategory == other.mApplicationErrorCodeCategory) \
|
|
&& (mLocalCommunicationId == other.mLocalCommunicationId) \
|
|
&& (mLogoType == other.mLogoType) \
|
|
&& (mLogoHandling == other.mLogoHandling) \
|
|
&& (mRuntimeAocInstallMode == other.mRuntimeAocInstallMode) \
|
|
&& (mCrashReportMode == other.mCrashReportMode) \
|
|
&& (mHdcp == other.mHdcp) \
|
|
&& (mSeedForPsuedoDeviceId == other.mSeedForPsuedoDeviceId) \
|
|
&& (mBcatPassphase == other.mBcatPassphase) \
|
|
&& (mUserAccountSaveDataMax == other.mUserAccountSaveDataMax) \
|
|
&& (mDeviceSaveDataMax == other.mDeviceSaveDataMax) \
|
|
&& (mTemporaryStorageSize == other.mTemporaryStorageSize) \
|
|
&& (mCacheStorageSize == other.mCacheStorageSize) \
|
|
&& (mCacheStorageDataAndJournalSizeMax == other.mCacheStorageDataAndJournalSizeMax) \
|
|
&& (mCacheStorageIndexMax == other.mCacheStorageIndexMax) \
|
|
&& (mPlayLogQueryableApplicationId == other.mPlayLogQueryableApplicationId) \
|
|
&& (mPlayLogQueryCapability == other.mPlayLogQueryCapability) \
|
|
&& (mRepairFlag == other.mRepairFlag) \
|
|
&& (mProgramIndex == other.mProgramIndex);
|
|
}
|
|
|
|
bool nn::hac::ApplicationControlProperty::operator!=(const ApplicationControlProperty& other) const
|
|
{
|
|
return !(*this == other);
|
|
}
|
|
|
|
void nn::hac::ApplicationControlProperty::toBytes()
|
|
{
|
|
mRawBinary.alloc(sizeof(nn::hac::sApplicationControlProperty));
|
|
|
|
sApplicationControlProperty* data = (sApplicationControlProperty*)mRawBinary.data();
|
|
|
|
// strings
|
|
for (size_t i = 0; i < mTitle.size(); i++)
|
|
{
|
|
strncpy(data->title[mTitle[i].language].name, mTitle[i].name.c_str(), nacp::kNameLength);
|
|
strncpy(data->title[mTitle[i].language].publisher, mTitle[i].publisher.c_str(), nacp::kPublisherLength);
|
|
}
|
|
|
|
uint32_t supported_langs = 0;
|
|
for (size_t i = 0; i < mSupportedLanguages.size(); i++)
|
|
{
|
|
supported_langs |= _BIT(mSupportedLanguages[i]);
|
|
}
|
|
data->supported_language_flag = supported_langs;
|
|
|
|
strncpy(data->isbn, mIsbn.c_str(), nacp::kIsbnLength);
|
|
strncpy(data->display_version, mDisplayVersion.c_str(), nacp::kDisplayVersionLength);
|
|
strncpy(data->application_error_code_category, mApplicationErrorCodeCategory.c_str(), nacp::kApplicationErrorCodeCategoryLength);
|
|
strncpy(data->bcat_passphrase, mBcatPassphase.c_str(), nacp::kBcatPassphraseLength);
|
|
|
|
// enum type casts
|
|
data->startup_user_account = mStartupUserAccount;
|
|
data->touch_screen_usage = mTouchScreenUsageMode;
|
|
data->add_on_content_registration_type = mAocRegistrationType;
|
|
data->attribute_flag = mAttributeFlag;
|
|
data->parental_control_flag = mParentalControlFlag;
|
|
data->screenshot = mScreenshotMode;
|
|
data->video_capture = mVideoCaptureMode;
|
|
data->data_loss_confirmation = mDataLossConfirmation;
|
|
data->play_log_policy = mPlayLogPolicy;
|
|
data->logo_type = mLogoType;
|
|
data->logo_handling = mLogoHandling;
|
|
data->runtime_add_on_content_install = mRuntimeAocInstallMode;
|
|
data->crash_report = mCrashReportMode;
|
|
data->hdcp = mHdcp;
|
|
data->play_log_query_capability = mPlayLogQueryCapability;
|
|
data->repair_flag = mRepairFlag;
|
|
|
|
// misc params
|
|
data->presence_group_id = mPresenceGroupId;
|
|
memset(data->rating_age, nacp::kUnusedAgeRating, nacp::kRatingAgeCount); // clear ratings
|
|
for (size_t i = 0; i < mRatingAge.size(); i++)
|
|
{
|
|
data->rating_age[mRatingAge[i].organisation] = mRatingAge[i].age;
|
|
}
|
|
data->add_on_content_base_id = mAocBaseId;
|
|
data->save_data_owner_id = mSaveDatawOwnerId;
|
|
for (size_t i = 0; i < mLocalCommunicationId.size() && i < nacp::kLocalCommunicationIdCount; i++)
|
|
{
|
|
data->local_communication_id[i] = mLocalCommunicationId[i];
|
|
}
|
|
data->seed_for_pseudo_device_id = mSeedForPsuedoDeviceId;
|
|
for (size_t i = 0; i < mPlayLogQueryableApplicationId.size() && i < nacp::kPlayLogQueryableApplicationIdCount; i++)
|
|
{
|
|
data->play_log_queryable_application_id[i] = mPlayLogQueryableApplicationId[i];
|
|
}
|
|
data->cache_storage_index_max = mCacheStorageIndexMax;
|
|
data->program_index = mProgramIndex;
|
|
|
|
// sizes
|
|
data->user_account_save_data_size = mUserAccountSaveDataSize.size;
|
|
data->user_account_save_data_journal_size = mUserAccountSaveDataSize.journal_size;
|
|
data->device_save_data_size = mDeviceSaveDataSize.size;
|
|
data->device_save_data_journal_size = mDeviceSaveDataSize.journal_size;
|
|
data->bcat_delivery_cache_storage_size = mBcatDeliveryCacheStorageSize;
|
|
data->user_account_save_data_size_max = mUserAccountSaveDataMax.size;
|
|
data->user_account_save_data_journal_size_max = mUserAccountSaveDataMax.journal_size;
|
|
data->device_save_data_size_max = mDeviceSaveDataMax.size;
|
|
data->device_save_data_journal_size_max = mDeviceSaveDataMax.journal_size;
|
|
data->temporary_storage_size = mTemporaryStorageSize;
|
|
data->cache_storage_size = mCacheStorageSize.size;
|
|
data->cache_storage_journal_size = mCacheStorageSize.journal_size;
|
|
data->cache_storage_data_and_journal_size_max = mCacheStorageDataAndJournalSizeMax;
|
|
}
|
|
|
|
void nn::hac::ApplicationControlProperty::fromBytes(const byte_t* bytes, size_t len)
|
|
{
|
|
if (len < sizeof(nn::hac::sApplicationControlProperty))
|
|
{
|
|
throw fnd::Exception(kModuleName, "NACP too small");
|
|
}
|
|
|
|
clear();
|
|
|
|
mRawBinary.alloc(sizeof(nn::hac::sApplicationControlProperty));
|
|
memcpy(mRawBinary.data(), bytes, mRawBinary.size());
|
|
|
|
const sApplicationControlProperty* data = (const sApplicationControlProperty*)mRawBinary.data();
|
|
|
|
// strings
|
|
for (size_t i = 0; i < nacp::kMaxLanguageCount; i++)
|
|
{
|
|
if (_HAS_BIT(data->supported_language_flag.get(), i))
|
|
{
|
|
mSupportedLanguages.addElement((nacp::Language)i);
|
|
}
|
|
if (data->title[i].name[0] != '\0' && data->title[i].publisher[0] != '\0')
|
|
{
|
|
mTitle.addElement({ (nacp::Language)i, std::string(data->title[i].name, _MIN(strlen(data->title[i].name), nacp::kNameLength)), std::string(data->title[i].publisher, _MIN(strlen(data->title[i].publisher), nacp::kPublisherLength)) });
|
|
}
|
|
}
|
|
|
|
if (data->isbn[0] != 0)
|
|
mIsbn = std::string(data->isbn, _MIN(strlen(data->isbn), nacp::kIsbnLength));
|
|
if (data->display_version[0] != 0)
|
|
mDisplayVersion = std::string(data->display_version, _MIN(strlen(data->display_version), nacp::kDisplayVersionLength));
|
|
if (data->application_error_code_category[0] != 0)
|
|
mApplicationErrorCodeCategory = std::string(data->application_error_code_category, _MIN(strlen(data->application_error_code_category), nacp::kApplicationErrorCodeCategoryLength));
|
|
if (data->bcat_passphrase[0] != 0)
|
|
mBcatPassphase = std::string(data->bcat_passphrase, _MIN(strlen(data->bcat_passphrase), nacp::kBcatPassphraseLength));
|
|
|
|
// enum type casts
|
|
mStartupUserAccount = (nacp::StartupUserAccount)data->startup_user_account;
|
|
mTouchScreenUsageMode = (nacp::TouchScreenUsageMode)data->touch_screen_usage;
|
|
mAocRegistrationType = (nacp::AocRegistrationType)data->add_on_content_registration_type;
|
|
mAttributeFlag = (nacp::AttributeFlag)data->attribute_flag.get();
|
|
mParentalControlFlag = (nacp::ParentalControlFlag)data->parental_control_flag.get();
|
|
mScreenshotMode = (nacp::ScreenshotMode)data->screenshot;
|
|
mVideoCaptureMode = (nacp::VideoCaptureMode)data->video_capture;
|
|
mDataLossConfirmation = (nacp::DataLossConfirmation)data->data_loss_confirmation;
|
|
mPlayLogPolicy = (nacp::PlayLogPolicy)data->play_log_policy;
|
|
mLogoType = (nacp::LogoType)data->logo_type;
|
|
mLogoHandling = (nacp::LogoHandling)data->logo_handling;
|
|
mRuntimeAocInstallMode = (nacp::RuntimeAocInstallMode)data->runtime_add_on_content_install;
|
|
mCrashReportMode = (nacp::CrashReportMode)data->crash_report;
|
|
mHdcp = (nacp::Hdcp)data->hdcp;
|
|
mPlayLogQueryCapability = (nacp::PlayLogQueryCapability)data->play_log_query_capability;
|
|
mRepairFlag = (nacp::RepairFlag)data->repair_flag;
|
|
|
|
// misc params
|
|
mPresenceGroupId = data->presence_group_id.get();
|
|
for (size_t i = 0; i < nacp::kRatingAgeCount; i++)
|
|
{
|
|
if (data->rating_age[i] != nacp::kUnusedAgeRating)
|
|
mRatingAge.addElement({(nacp::Organisation)i, data->rating_age[i]});
|
|
}
|
|
mAocBaseId = data->add_on_content_base_id.get();
|
|
mSaveDatawOwnerId = data->save_data_owner_id.get();
|
|
for (size_t i = 0; i < nacp::kLocalCommunicationIdCount; i++)
|
|
{
|
|
if (data->local_communication_id[i].get() != 0)
|
|
mLocalCommunicationId.addElement(data->local_communication_id[i].get());
|
|
}
|
|
mSeedForPsuedoDeviceId = data->seed_for_pseudo_device_id.get();
|
|
for (size_t i = 0; i < nacp::kPlayLogQueryableApplicationIdCount; i++)
|
|
{
|
|
if (data->play_log_queryable_application_id[i].get() != 0)
|
|
mPlayLogQueryableApplicationId.addElement(data->play_log_queryable_application_id[i].get());
|
|
}
|
|
mCacheStorageIndexMax = data->cache_storage_index_max.get();
|
|
mProgramIndex = data->program_index;
|
|
|
|
// sizes
|
|
mUserAccountSaveDataSize.size = (int64_t)data->user_account_save_data_size.get();
|
|
mUserAccountSaveDataSize.journal_size = (int64_t)data->user_account_save_data_journal_size.get();
|
|
mDeviceSaveDataSize.size = (int64_t)data->device_save_data_size.get();
|
|
mDeviceSaveDataSize.journal_size = (int64_t)data->device_save_data_journal_size.get();
|
|
mBcatDeliveryCacheStorageSize = (int64_t)data->bcat_delivery_cache_storage_size.get();
|
|
mUserAccountSaveDataMax.size = (int64_t)data->user_account_save_data_size_max.get();
|
|
mUserAccountSaveDataMax.journal_size = (int64_t)data->user_account_save_data_journal_size_max.get();
|
|
mDeviceSaveDataMax.size = (int64_t)data->device_save_data_size_max.get();
|
|
mDeviceSaveDataMax.journal_size = (int64_t)data->device_save_data_journal_size_max.get();
|
|
mTemporaryStorageSize = (int64_t)data->temporary_storage_size.get();
|
|
mCacheStorageSize.size = (int64_t)data->cache_storage_size.get();
|
|
mCacheStorageSize.journal_size = (int64_t)data->cache_storage_journal_size.get();
|
|
mCacheStorageDataAndJournalSizeMax = (int64_t)data->cache_storage_data_and_journal_size_max.get();
|
|
}
|
|
|
|
const fnd::Vec<byte_t>& nn::hac::ApplicationControlProperty::getBytes() const
|
|
{
|
|
return mRawBinary;
|
|
}
|
|
|
|
void nn::hac::ApplicationControlProperty::clear()
|
|
{
|
|
mRawBinary.clear();
|
|
mTitle.clear();
|
|
mIsbn.clear();
|
|
mStartupUserAccount = nacp::USER_None;
|
|
mTouchScreenUsageMode = nacp::TOUCH_None;
|
|
mAocRegistrationType = nacp::AOC_AllOnLaunch;
|
|
mAttributeFlag = nacp::ATTR_None;
|
|
mSupportedLanguages.clear();
|
|
mParentalControlFlag = nacp::PC_None;
|
|
mScreenshotMode = nacp::SCRN_Allow;
|
|
mVideoCaptureMode = nacp::VCAP_Disable;
|
|
mDataLossConfirmation = nacp::DLOSS_None;
|
|
mPlayLogPolicy = nacp::PLP_All;
|
|
mPresenceGroupId = 0;
|
|
mRatingAge.clear();
|
|
mDisplayVersion.clear();
|
|
mAocBaseId = 0;
|
|
mSaveDatawOwnerId = 0;
|
|
mUserAccountSaveDataSize = {0, 0};
|
|
mDeviceSaveDataSize = {0, 0};
|
|
mBcatDeliveryCacheStorageSize = 0;
|
|
mApplicationErrorCodeCategory.clear();
|
|
mLocalCommunicationId.clear();
|
|
mLogoType = nacp::LOGO_Nintendo;
|
|
mLogoHandling = nacp::LHND_Auto;
|
|
mRuntimeAocInstallMode = nacp::RTAOC_Deny;
|
|
mCrashReportMode = nacp::CREP_Deny;
|
|
mHdcp = nacp::HDCP_None;
|
|
mSeedForPsuedoDeviceId = 0;
|
|
mBcatPassphase.clear();
|
|
mUserAccountSaveDataMax;
|
|
mDeviceSaveDataMax = {0, 0};
|
|
mTemporaryStorageSize = 0;
|
|
mCacheStorageSize = {0, 0};
|
|
mCacheStorageDataAndJournalSizeMax = 0;
|
|
mCacheStorageIndexMax = 0;
|
|
mPlayLogQueryableApplicationId.clear();
|
|
mPlayLogQueryCapability = nacp::PLQC_None;
|
|
mRepairFlag = nacp::REPF_None;
|
|
mProgramIndex = 0;
|
|
}
|
|
|
|
const fnd::List<nn::hac::ApplicationControlProperty::sTitle>& nn::hac::ApplicationControlProperty::getTitle() const
|
|
{
|
|
return mTitle;
|
|
}
|
|
|
|
void nn::hac::ApplicationControlProperty::setTitle(const fnd::List<sTitle>& title)
|
|
{
|
|
mTitle = title;
|
|
}
|
|
|
|
const std::string& nn::hac::ApplicationControlProperty::getIsbn() const
|
|
{
|
|
return mIsbn;
|
|
}
|
|
|
|
void nn::hac::ApplicationControlProperty::setIsbn(const std::string& isbn)
|
|
{
|
|
mIsbn = isbn;
|
|
}
|
|
|
|
nn::hac::nacp::StartupUserAccount nn::hac::ApplicationControlProperty::getStartupUserAccount() const
|
|
{
|
|
return mStartupUserAccount;
|
|
}
|
|
|
|
void nn::hac::ApplicationControlProperty::setStartupUserAccount(nacp::StartupUserAccount var)
|
|
{
|
|
mStartupUserAccount = var;
|
|
}
|
|
|
|
nn::hac::nacp::TouchScreenUsageMode nn::hac::ApplicationControlProperty::getTouchScreenUsageMode() const
|
|
{
|
|
return mTouchScreenUsageMode;
|
|
}
|
|
|
|
void nn::hac::ApplicationControlProperty::setTouchScreenUsageMode(nacp::TouchScreenUsageMode var)
|
|
{
|
|
mTouchScreenUsageMode = var;
|
|
}
|
|
|
|
nn::hac::nacp::AocRegistrationType nn::hac::ApplicationControlProperty::getAocRegistrationType() const
|
|
{
|
|
return mAocRegistrationType;
|
|
}
|
|
|
|
void nn::hac::ApplicationControlProperty::setAocRegistrationType(nacp::AocRegistrationType var)
|
|
{
|
|
mAocRegistrationType = var;
|
|
}
|
|
|
|
nn::hac::nacp::AttributeFlag nn::hac::ApplicationControlProperty::getAttributeFlag() const
|
|
{
|
|
return mAttributeFlag;
|
|
}
|
|
|
|
void nn::hac::ApplicationControlProperty::setAttributeFlag(nacp::AttributeFlag var)
|
|
{
|
|
mAttributeFlag = var;
|
|
}
|
|
|
|
const fnd::List<nn::hac::nacp::Language>& nn::hac::ApplicationControlProperty::getSupportedLanguages() const
|
|
{
|
|
return mSupportedLanguages;
|
|
}
|
|
|
|
void nn::hac::ApplicationControlProperty::setSupportedLanguages(const fnd::List<nacp::Language>& var)
|
|
{
|
|
mSupportedLanguages = var;
|
|
}
|
|
|
|
nn::hac::nacp::ParentalControlFlag nn::hac::ApplicationControlProperty::getParentalControlFlag() const
|
|
{
|
|
return mParentalControlFlag;
|
|
}
|
|
|
|
void nn::hac::ApplicationControlProperty::setParentalControlFlag(nacp::ParentalControlFlag var)
|
|
{
|
|
mParentalControlFlag = var;
|
|
}
|
|
|
|
nn::hac::nacp::ScreenshotMode nn::hac::ApplicationControlProperty::getScreenshotMode() const
|
|
{
|
|
return mScreenshotMode;
|
|
}
|
|
|
|
void nn::hac::ApplicationControlProperty::setScreenshotMode(nacp::ScreenshotMode var)
|
|
{
|
|
mScreenshotMode = var;
|
|
}
|
|
|
|
nn::hac::nacp::VideoCaptureMode nn::hac::ApplicationControlProperty::getVideoCaptureMode() const
|
|
{
|
|
return mVideoCaptureMode;
|
|
}
|
|
|
|
void nn::hac::ApplicationControlProperty::setVideoCaptureMode(nacp::VideoCaptureMode var)
|
|
{
|
|
mVideoCaptureMode = var;
|
|
}
|
|
|
|
nn::hac::nacp::DataLossConfirmation nn::hac::ApplicationControlProperty::getDataLossConfirmation() const
|
|
{
|
|
return mDataLossConfirmation;
|
|
}
|
|
|
|
void nn::hac::ApplicationControlProperty::setDataLossConfirmation(nacp::DataLossConfirmation var)
|
|
{
|
|
mDataLossConfirmation = var;
|
|
}
|
|
|
|
nn::hac::nacp::PlayLogPolicy nn::hac::ApplicationControlProperty::getPlayLogPolicy() const
|
|
{
|
|
return mPlayLogPolicy;
|
|
}
|
|
|
|
void nn::hac::ApplicationControlProperty::setPlayLogPolicy(nacp::PlayLogPolicy var)
|
|
{
|
|
mPlayLogPolicy = var;
|
|
}
|
|
|
|
uint64_t nn::hac::ApplicationControlProperty::getPresenceGroupId() const
|
|
{
|
|
return mPresenceGroupId;
|
|
}
|
|
|
|
void nn::hac::ApplicationControlProperty::setPresenceGroupId(uint64_t var)
|
|
{
|
|
mPresenceGroupId = var;
|
|
}
|
|
|
|
const fnd::List<nn::hac::ApplicationControlProperty::sRating>& nn::hac::ApplicationControlProperty::getRatingAge() const
|
|
{
|
|
return mRatingAge;
|
|
}
|
|
|
|
void nn::hac::ApplicationControlProperty::setRatingAge(const fnd::List<sRating>& var)
|
|
{
|
|
mRatingAge = var;
|
|
}
|
|
|
|
const std::string& nn::hac::ApplicationControlProperty::getDisplayVersion() const
|
|
{
|
|
return mDisplayVersion;
|
|
}
|
|
|
|
void nn::hac::ApplicationControlProperty::setDisplayVersion(const std::string& var)
|
|
{
|
|
mDisplayVersion = var;
|
|
}
|
|
|
|
uint64_t nn::hac::ApplicationControlProperty::getAocBaseId() const
|
|
{
|
|
return mAocBaseId;
|
|
}
|
|
|
|
void nn::hac::ApplicationControlProperty::setAocBaseId(uint64_t var)
|
|
{
|
|
mAocBaseId = var;
|
|
}
|
|
|
|
uint64_t nn::hac::ApplicationControlProperty::getSaveDatawOwnerId() const
|
|
{
|
|
return mSaveDatawOwnerId;
|
|
}
|
|
|
|
void nn::hac::ApplicationControlProperty::setSaveDatawOwnerId(uint64_t var)
|
|
{
|
|
mSaveDatawOwnerId = var;
|
|
}
|
|
|
|
const nn::hac::ApplicationControlProperty::sStorageSize& nn::hac::ApplicationControlProperty::getUserAccountSaveDataSize() const
|
|
{
|
|
return mUserAccountSaveDataSize;
|
|
}
|
|
|
|
void nn::hac::ApplicationControlProperty::setUserAccountSaveDataSize(const sStorageSize& var)
|
|
{
|
|
mUserAccountSaveDataSize = var;
|
|
}
|
|
|
|
const nn::hac::ApplicationControlProperty::sStorageSize& nn::hac::ApplicationControlProperty::getDeviceSaveDataSize() const
|
|
{
|
|
return mDeviceSaveDataSize;
|
|
}
|
|
|
|
void nn::hac::ApplicationControlProperty::setDeviceSaveDataSize(const sStorageSize& var)
|
|
{
|
|
mDeviceSaveDataSize = var;
|
|
}
|
|
|
|
int64_t nn::hac::ApplicationControlProperty::getBcatDeliveryCacheStorageSize() const
|
|
{
|
|
return mBcatDeliveryCacheStorageSize;
|
|
}
|
|
|
|
void nn::hac::ApplicationControlProperty::setBcatDeliveryCacheStorageSize(int64_t var)
|
|
{
|
|
mBcatDeliveryCacheStorageSize = var;
|
|
}
|
|
|
|
const std::string& nn::hac::ApplicationControlProperty::getApplicationErrorCodeCategory() const
|
|
{
|
|
return mApplicationErrorCodeCategory;
|
|
}
|
|
|
|
void nn::hac::ApplicationControlProperty::setApplicationErrorCodeCategory(const std::string& var)
|
|
{
|
|
mApplicationErrorCodeCategory = var;
|
|
}
|
|
|
|
const fnd::List<uint64_t>& nn::hac::ApplicationControlProperty::getLocalCommunicationId() const
|
|
{
|
|
return mLocalCommunicationId;
|
|
}
|
|
|
|
void nn::hac::ApplicationControlProperty::setLocalCommunicationId(const fnd::List<uint64_t>& var)
|
|
{
|
|
mLocalCommunicationId = var;
|
|
}
|
|
|
|
nn::hac::nacp::LogoType nn::hac::ApplicationControlProperty::getLogoType() const
|
|
{
|
|
return mLogoType;
|
|
}
|
|
|
|
void nn::hac::ApplicationControlProperty::setLogoType(nacp::LogoType var)
|
|
{
|
|
mLogoType = var;
|
|
}
|
|
|
|
nn::hac::nacp::LogoHandling nn::hac::ApplicationControlProperty::getLogoHandling() const
|
|
{
|
|
return mLogoHandling;
|
|
}
|
|
|
|
void nn::hac::ApplicationControlProperty::setLogoHandling(nacp::LogoHandling var)
|
|
{
|
|
mLogoHandling = var;
|
|
}
|
|
|
|
nn::hac::nacp::RuntimeAocInstallMode nn::hac::ApplicationControlProperty::getRuntimeAocInstallMode() const
|
|
{
|
|
return mRuntimeAocInstallMode;
|
|
}
|
|
|
|
void nn::hac::ApplicationControlProperty::setRuntimeAocInstallMode(nacp::RuntimeAocInstallMode var)
|
|
{
|
|
mRuntimeAocInstallMode = var;
|
|
}
|
|
|
|
nn::hac::nacp::CrashReportMode nn::hac::ApplicationControlProperty::getCrashReportMode() const
|
|
{
|
|
return mCrashReportMode;
|
|
}
|
|
|
|
void nn::hac::ApplicationControlProperty::setCrashReportMode(nacp::CrashReportMode var)
|
|
{
|
|
mCrashReportMode = var;
|
|
}
|
|
|
|
nn::hac::nacp::Hdcp nn::hac::ApplicationControlProperty::getHdcp() const
|
|
{
|
|
return mHdcp;
|
|
}
|
|
|
|
void nn::hac::ApplicationControlProperty::setHdcp(nacp::Hdcp var)
|
|
{
|
|
mHdcp = var;
|
|
}
|
|
|
|
uint64_t nn::hac::ApplicationControlProperty::getSeedForPsuedoDeviceId() const
|
|
{
|
|
return mSeedForPsuedoDeviceId;
|
|
}
|
|
|
|
void nn::hac::ApplicationControlProperty::setSeedForPsuedoDeviceId(uint64_t var)
|
|
{
|
|
mSeedForPsuedoDeviceId = var;
|
|
}
|
|
|
|
const std::string& nn::hac::ApplicationControlProperty::getBcatPassphase() const
|
|
{
|
|
return mBcatPassphase;
|
|
}
|
|
|
|
void nn::hac::ApplicationControlProperty::setBcatPassphase(const std::string& var)
|
|
{
|
|
mBcatPassphase = var;
|
|
}
|
|
|
|
const nn::hac::ApplicationControlProperty::sStorageSize& nn::hac::ApplicationControlProperty::getUserAccountSaveDataMax() const
|
|
{
|
|
return mUserAccountSaveDataMax;
|
|
}
|
|
|
|
void nn::hac::ApplicationControlProperty::setUserAccountSaveDataMax(const sStorageSize& var)
|
|
{
|
|
mUserAccountSaveDataMax = var;
|
|
}
|
|
|
|
const nn::hac::ApplicationControlProperty::sStorageSize& nn::hac::ApplicationControlProperty::getDeviceSaveDataMax() const
|
|
{
|
|
return mDeviceSaveDataMax;
|
|
}
|
|
|
|
void nn::hac::ApplicationControlProperty::setDeviceSaveDataMax(const sStorageSize& var)
|
|
{
|
|
mDeviceSaveDataMax = var;
|
|
}
|
|
|
|
int64_t nn::hac::ApplicationControlProperty::getTemporaryStorageSize() const
|
|
{
|
|
return mTemporaryStorageSize;
|
|
}
|
|
|
|
void nn::hac::ApplicationControlProperty::setTemporaryStorageSize(int64_t var)
|
|
{
|
|
mTemporaryStorageSize = var;
|
|
}
|
|
|
|
const nn::hac::ApplicationControlProperty::sStorageSize& nn::hac::ApplicationControlProperty::getCacheStorageSize() const
|
|
{
|
|
return mCacheStorageSize;
|
|
}
|
|
|
|
void nn::hac::ApplicationControlProperty::setCacheStorageSize(const sStorageSize& var)
|
|
{
|
|
mCacheStorageSize = var;
|
|
}
|
|
|
|
int64_t nn::hac::ApplicationControlProperty::getCacheStorageDataAndJournalSizeMax() const
|
|
{
|
|
return mCacheStorageDataAndJournalSizeMax;
|
|
}
|
|
|
|
void nn::hac::ApplicationControlProperty::setCacheStorageDataAndJournalSizeMax(int64_t var)
|
|
{
|
|
mCacheStorageDataAndJournalSizeMax = var;
|
|
}
|
|
|
|
uint16_t nn::hac::ApplicationControlProperty::getCacheStorageIndexMax() const
|
|
{
|
|
return mCacheStorageIndexMax;
|
|
}
|
|
|
|
void nn::hac::ApplicationControlProperty::setCacheStorageIndexMax(uint16_t var)
|
|
{
|
|
mCacheStorageIndexMax = var;
|
|
}
|
|
|
|
const fnd::List<uint64_t>& nn::hac::ApplicationControlProperty::getPlayLogQueryableApplicationId() const
|
|
{
|
|
return mPlayLogQueryableApplicationId;
|
|
}
|
|
|
|
void nn::hac::ApplicationControlProperty::setPlayLogQueryableApplicationId(const fnd::List<uint64_t>& var)
|
|
{
|
|
mPlayLogQueryableApplicationId = var;
|
|
}
|
|
|
|
nn::hac::nacp::PlayLogQueryCapability nn::hac::ApplicationControlProperty::getPlayLogQueryCapability() const
|
|
{
|
|
return mPlayLogQueryCapability;
|
|
}
|
|
|
|
void nn::hac::ApplicationControlProperty::setPlayLogQueryCapability(nacp::PlayLogQueryCapability var)
|
|
{
|
|
mPlayLogQueryCapability = var;
|
|
}
|
|
|
|
nn::hac::nacp::RepairFlag nn::hac::ApplicationControlProperty::getRepairFlag() const
|
|
{
|
|
return mRepairFlag;
|
|
}
|
|
|
|
void nn::hac::ApplicationControlProperty::setRepairFlag(nacp::RepairFlag var)
|
|
{
|
|
mRepairFlag = var;
|
|
}
|
|
|
|
byte_t nn::hac::ApplicationControlProperty::getProgramIndex() const
|
|
{
|
|
return mProgramIndex;
|
|
}
|
|
|
|
void nn::hac::ApplicationControlProperty::setProgramIndex(byte_t var)
|
|
{
|
|
mProgramIndex = var;
|
|
} |