2018-08-07 07:17:51 +00:00
|
|
|
#include <nn/hac/ApplicationControlPropertyBinary.h>
|
2018-06-11 15:00:47 +00:00
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
nn::hac::ApplicationControlPropertyBinary::ApplicationControlPropertyBinary()
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
clear();
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
nn::hac::ApplicationControlPropertyBinary::ApplicationControlPropertyBinary(const ApplicationControlPropertyBinary& other)
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
2018-06-24 08:18:54 +00:00
|
|
|
*this = other;
|
2018-06-11 15:00:47 +00:00
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
void nn::hac::ApplicationControlPropertyBinary::operator=(const ApplicationControlPropertyBinary& other)
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
2018-06-24 08:18:54 +00:00
|
|
|
clear();
|
|
|
|
mTitle = other.mTitle;
|
|
|
|
mIsbn = other.mIsbn;
|
|
|
|
mStartupUserAccount = other.mStartupUserAccount;
|
|
|
|
mTouchScreenUsageMode = other.mTouchScreenUsageMode;
|
|
|
|
mAocRegistrationType = other.mAocRegistrationType;
|
|
|
|
mAttributeFlag = other.mAttributeFlag;
|
2018-07-31 05:23:51 +00:00
|
|
|
mSupportedLanguages = other.mSupportedLanguages;
|
2018-06-24 08:18:54 +00:00
|
|
|
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;
|
2018-07-11 12:01:13 +00:00
|
|
|
mCacheStorageIndexMax = other.mCacheStorageIndexMax;
|
2018-06-24 08:18:54 +00:00
|
|
|
mPlayLogQueryableApplicationId = other.mPlayLogQueryableApplicationId;
|
|
|
|
mPlayLogQueryCapability = other.mPlayLogQueryCapability;
|
|
|
|
mRepairFlag = other.mRepairFlag;
|
|
|
|
mProgramIndex = other.mProgramIndex;
|
2018-06-11 15:00:47 +00:00
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
bool nn::hac::ApplicationControlPropertyBinary::operator==(const ApplicationControlPropertyBinary& other) const
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
2018-06-24 08:18:54 +00:00
|
|
|
return (mTitle == other.mTitle) \
|
|
|
|
&& (mIsbn == other.mIsbn) \
|
|
|
|
&& (mStartupUserAccount == other.mStartupUserAccount) \
|
|
|
|
&& (mTouchScreenUsageMode == other.mTouchScreenUsageMode) \
|
|
|
|
&& (mAocRegistrationType == other.mAocRegistrationType) \
|
|
|
|
&& (mAttributeFlag == other.mAttributeFlag) \
|
2018-07-31 05:23:51 +00:00
|
|
|
&& (mSupportedLanguages == other.mSupportedLanguages) \
|
2018-06-24 08:18:54 +00:00
|
|
|
&& (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) \
|
2018-07-11 12:01:13 +00:00
|
|
|
&& (mCacheStorageIndexMax == other.mCacheStorageIndexMax) \
|
2018-06-24 08:18:54 +00:00
|
|
|
&& (mPlayLogQueryableApplicationId == other.mPlayLogQueryableApplicationId) \
|
|
|
|
&& (mPlayLogQueryCapability == other.mPlayLogQueryCapability) \
|
|
|
|
&& (mRepairFlag == other.mRepairFlag) \
|
|
|
|
&& (mProgramIndex == other.mProgramIndex);
|
2018-06-11 15:00:47 +00:00
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
bool nn::hac::ApplicationControlPropertyBinary::operator!=(const ApplicationControlPropertyBinary& other) const
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
return !(*this == other);
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
void nn::hac::ApplicationControlPropertyBinary::toBytes()
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
2018-08-07 07:17:51 +00:00
|
|
|
mRawBinary.alloc(sizeof(nn::hac::sApplicationControlProperty));
|
2018-06-11 15:00:47 +00:00
|
|
|
|
2018-06-24 08:18:54 +00:00
|
|
|
sApplicationControlProperty* data = (sApplicationControlProperty*)mRawBinary.data();
|
2018-06-11 15:00:47 +00:00
|
|
|
|
|
|
|
// strings
|
2018-06-24 08:18:54 +00:00
|
|
|
for (size_t i = 0; i < mTitle.size(); i++)
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
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);
|
|
|
|
}
|
2018-07-31 05:23:51 +00:00
|
|
|
|
|
|
|
uint32_t supported_langs = 0;
|
|
|
|
for (size_t i = 0; i < mSupportedLanguages.size(); i++)
|
|
|
|
{
|
|
|
|
supported_langs |= _BIT(mSupportedLanguages[i]);
|
|
|
|
}
|
2018-06-11 15:00:47 +00:00
|
|
|
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
|
2018-06-24 08:18:54 +00:00
|
|
|
for (size_t i = 0; i < mRatingAge.size(); i++)
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
data->rating_age[mRatingAge[i].organisation] = mRatingAge[i].age;
|
|
|
|
}
|
|
|
|
data->add_on_content_base_id = mAocBaseId;
|
|
|
|
data->save_data_owner_id = mSaveDatawOwnerId;
|
2018-06-24 08:18:54 +00:00
|
|
|
for (size_t i = 0; i < mLocalCommunicationId.size() && i < nacp::kLocalCommunicationIdCount; i++)
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
data->local_communication_id[i] = mLocalCommunicationId[i];
|
|
|
|
}
|
|
|
|
data->seed_for_pseudo_device_id = mSeedForPsuedoDeviceId;
|
2018-06-24 08:18:54 +00:00
|
|
|
for (size_t i = 0; i < mPlayLogQueryableApplicationId.size() && i < nacp::kPlayLogQueryableApplicationIdCount; i++)
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
data->play_log_queryable_application_id[i] = mPlayLogQueryableApplicationId[i];
|
|
|
|
}
|
2018-07-31 05:06:28 +00:00
|
|
|
data->cache_storage_index_max = mCacheStorageIndexMax;
|
2018-06-11 15:00:47 +00:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
void nn::hac::ApplicationControlPropertyBinary::fromBytes(const byte_t* bytes, size_t len)
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
2018-08-07 07:17:51 +00:00
|
|
|
if (len < sizeof(nn::hac::sApplicationControlProperty))
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
throw fnd::Exception(kModuleName, "NACP too small");
|
|
|
|
}
|
|
|
|
|
|
|
|
clear();
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
mRawBinary.alloc(sizeof(nn::hac::sApplicationControlProperty));
|
2018-06-24 08:18:54 +00:00
|
|
|
memcpy(mRawBinary.data(), bytes, mRawBinary.size());
|
2018-06-11 15:00:47 +00:00
|
|
|
|
2018-06-24 08:18:54 +00:00
|
|
|
const sApplicationControlProperty* data = (const sApplicationControlProperty*)mRawBinary.data();
|
2018-06-11 15:00:47 +00:00
|
|
|
|
|
|
|
// strings
|
|
|
|
for (size_t i = 0; i < nacp::kMaxLanguageCount; i++)
|
|
|
|
{
|
|
|
|
if (_HAS_BIT(data->supported_language_flag.get(), i))
|
2018-07-31 05:23:51 +00:00
|
|
|
{
|
|
|
|
mSupportedLanguages.addElement((nacp::Language)i);
|
|
|
|
}
|
|
|
|
if (data->title[i].name[0] != '\0' && data->title[i].publisher[0] != '\0')
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
2018-07-31 05:09:03 +00:00
|
|
|
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)) });
|
2018-06-11 15:00:47 +00:00
|
|
|
}
|
|
|
|
}
|
2018-07-31 05:23:51 +00:00
|
|
|
|
2018-06-11 15:00:47 +00:00
|
|
|
if (data->isbn[0] != 0)
|
2018-07-31 05:09:03 +00:00
|
|
|
mIsbn = std::string(data->isbn, _MIN(strlen(data->isbn), nacp::kIsbnLength));
|
2018-06-11 15:00:47 +00:00
|
|
|
if (data->display_version[0] != 0)
|
2018-07-31 05:09:03 +00:00
|
|
|
mDisplayVersion = std::string(data->display_version, _MIN(strlen(data->display_version), nacp::kDisplayVersionLength));
|
2018-06-11 15:00:47 +00:00
|
|
|
if (data->application_error_code_category[0] != 0)
|
2018-07-31 05:09:03 +00:00
|
|
|
mApplicationErrorCodeCategory = std::string(data->application_error_code_category, _MIN(strlen(data->application_error_code_category), nacp::kApplicationErrorCodeCategoryLength));
|
2018-06-11 15:00:47 +00:00
|
|
|
if (data->bcat_passphrase[0] != 0)
|
2018-07-31 05:09:03 +00:00
|
|
|
mBcatPassphase = std::string(data->bcat_passphrase, _MIN(strlen(data->bcat_passphrase), nacp::kBcatPassphraseLength));
|
2018-06-11 15:00:47 +00:00
|
|
|
|
|
|
|
// 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());
|
|
|
|
}
|
2018-07-31 05:06:28 +00:00
|
|
|
mCacheStorageIndexMax = data->cache_storage_index_max.get();
|
2018-06-11 15:00:47 +00:00
|
|
|
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();
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
const fnd::Vec<byte_t>& nn::hac::ApplicationControlPropertyBinary::getBytes() const
|
2018-06-24 08:18:54 +00:00
|
|
|
{
|
|
|
|
return mRawBinary;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
void nn::hac::ApplicationControlPropertyBinary::clear()
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
2018-06-24 08:18:54 +00:00
|
|
|
mRawBinary.clear();
|
2018-06-11 15:00:47 +00:00
|
|
|
mTitle.clear();
|
|
|
|
mIsbn.clear();
|
|
|
|
mStartupUserAccount = nacp::USER_None;
|
|
|
|
mTouchScreenUsageMode = nacp::TOUCH_None;
|
|
|
|
mAocRegistrationType = nacp::AOC_AllOnLaunch;
|
|
|
|
mAttributeFlag = nacp::ATTR_None;
|
2018-07-31 05:23:51 +00:00
|
|
|
mSupportedLanguages.clear();
|
2018-06-11 15:00:47 +00:00
|
|
|
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;
|
2018-07-11 12:01:13 +00:00
|
|
|
mCacheStorageIndexMax = 0;
|
2018-06-11 15:00:47 +00:00
|
|
|
mPlayLogQueryableApplicationId.clear();
|
|
|
|
mPlayLogQueryCapability = nacp::PLQC_None;
|
|
|
|
mRepairFlag = nacp::REPF_None;
|
|
|
|
mProgramIndex = 0;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
const fnd::List<nn::hac::ApplicationControlPropertyBinary::sTitle>& nn::hac::ApplicationControlPropertyBinary::getTitle() const
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
return mTitle;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
void nn::hac::ApplicationControlPropertyBinary::setTitle(const fnd::List<sTitle>& title)
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
mTitle = title;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
const std::string& nn::hac::ApplicationControlPropertyBinary::getIsbn() const
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
return mIsbn;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
void nn::hac::ApplicationControlPropertyBinary::setIsbn(const std::string& isbn)
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
mIsbn = isbn;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
nn::hac::nacp::StartupUserAccount nn::hac::ApplicationControlPropertyBinary::getStartupUserAccount() const
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
return mStartupUserAccount;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
void nn::hac::ApplicationControlPropertyBinary::setStartupUserAccount(nacp::StartupUserAccount var)
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
mStartupUserAccount = var;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
nn::hac::nacp::TouchScreenUsageMode nn::hac::ApplicationControlPropertyBinary::getTouchScreenUsageMode() const
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
return mTouchScreenUsageMode;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
void nn::hac::ApplicationControlPropertyBinary::setTouchScreenUsageMode(nacp::TouchScreenUsageMode var)
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
mTouchScreenUsageMode = var;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
nn::hac::nacp::AocRegistrationType nn::hac::ApplicationControlPropertyBinary::getAocRegistrationType() const
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
return mAocRegistrationType;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
void nn::hac::ApplicationControlPropertyBinary::setAocRegistrationType(nacp::AocRegistrationType var)
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
mAocRegistrationType = var;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
nn::hac::nacp::AttributeFlag nn::hac::ApplicationControlPropertyBinary::getAttributeFlag() const
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
return mAttributeFlag;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
void nn::hac::ApplicationControlPropertyBinary::setAttributeFlag(nacp::AttributeFlag var)
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
mAttributeFlag = var;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
const fnd::List<nn::hac::nacp::Language>& nn::hac::ApplicationControlPropertyBinary::getSupportedLanguages() const
|
2018-07-31 05:23:51 +00:00
|
|
|
{
|
|
|
|
return mSupportedLanguages;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
void nn::hac::ApplicationControlPropertyBinary::setSupportedLanguages(const fnd::List<nacp::Language>& var)
|
2018-07-31 05:23:51 +00:00
|
|
|
{
|
|
|
|
mSupportedLanguages = var;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
nn::hac::nacp::ParentalControlFlag nn::hac::ApplicationControlPropertyBinary::getParentalControlFlag() const
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
return mParentalControlFlag;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
void nn::hac::ApplicationControlPropertyBinary::setParentalControlFlag(nacp::ParentalControlFlag var)
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
mParentalControlFlag = var;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
nn::hac::nacp::ScreenshotMode nn::hac::ApplicationControlPropertyBinary::getScreenshotMode() const
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
return mScreenshotMode;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
void nn::hac::ApplicationControlPropertyBinary::setScreenshotMode(nacp::ScreenshotMode var)
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
mScreenshotMode = var;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
nn::hac::nacp::VideoCaptureMode nn::hac::ApplicationControlPropertyBinary::getVideoCaptureMode() const
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
return mVideoCaptureMode;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
void nn::hac::ApplicationControlPropertyBinary::setVideoCaptureMode(nacp::VideoCaptureMode var)
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
mVideoCaptureMode = var;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
nn::hac::nacp::DataLossConfirmation nn::hac::ApplicationControlPropertyBinary::getDataLossConfirmation() const
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
return mDataLossConfirmation;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
void nn::hac::ApplicationControlPropertyBinary::setDataLossConfirmation(nacp::DataLossConfirmation var)
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
mDataLossConfirmation = var;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
nn::hac::nacp::PlayLogPolicy nn::hac::ApplicationControlPropertyBinary::getPlayLogPolicy() const
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
return mPlayLogPolicy;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
void nn::hac::ApplicationControlPropertyBinary::setPlayLogPolicy(nacp::PlayLogPolicy var)
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
mPlayLogPolicy = var;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
uint64_t nn::hac::ApplicationControlPropertyBinary::getPresenceGroupId() const
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
return mPresenceGroupId;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
void nn::hac::ApplicationControlPropertyBinary::setPresenceGroupId(uint64_t var)
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
mPresenceGroupId = var;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
const fnd::List<nn::hac::ApplicationControlPropertyBinary::sRating>& nn::hac::ApplicationControlPropertyBinary::getRatingAge() const
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
return mRatingAge;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
void nn::hac::ApplicationControlPropertyBinary::setRatingAge(const fnd::List<sRating>& var)
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
mRatingAge = var;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
const std::string& nn::hac::ApplicationControlPropertyBinary::getDisplayVersion() const
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
return mDisplayVersion;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
void nn::hac::ApplicationControlPropertyBinary::setDisplayVersion(const std::string& var)
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
mDisplayVersion = var;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
uint64_t nn::hac::ApplicationControlPropertyBinary::getAocBaseId() const
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
return mAocBaseId;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
void nn::hac::ApplicationControlPropertyBinary::setAocBaseId(uint64_t var)
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
mAocBaseId = var;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
uint64_t nn::hac::ApplicationControlPropertyBinary::getSaveDatawOwnerId() const
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
return mSaveDatawOwnerId;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
void nn::hac::ApplicationControlPropertyBinary::setSaveDatawOwnerId(uint64_t var)
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
mSaveDatawOwnerId = var;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
const nn::hac::ApplicationControlPropertyBinary::sStorageSize& nn::hac::ApplicationControlPropertyBinary::getUserAccountSaveDataSize() const
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
return mUserAccountSaveDataSize;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
void nn::hac::ApplicationControlPropertyBinary::setUserAccountSaveDataSize(const sStorageSize& var)
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
mUserAccountSaveDataSize = var;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
const nn::hac::ApplicationControlPropertyBinary::sStorageSize& nn::hac::ApplicationControlPropertyBinary::getDeviceSaveDataSize() const
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
return mDeviceSaveDataSize;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
void nn::hac::ApplicationControlPropertyBinary::setDeviceSaveDataSize(const sStorageSize& var)
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
mDeviceSaveDataSize = var;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
int64_t nn::hac::ApplicationControlPropertyBinary::getBcatDeliveryCacheStorageSize() const
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
return mBcatDeliveryCacheStorageSize;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
void nn::hac::ApplicationControlPropertyBinary::setBcatDeliveryCacheStorageSize(int64_t var)
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
mBcatDeliveryCacheStorageSize = var;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
const std::string& nn::hac::ApplicationControlPropertyBinary::getApplicationErrorCodeCategory() const
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
return mApplicationErrorCodeCategory;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
void nn::hac::ApplicationControlPropertyBinary::setApplicationErrorCodeCategory(const std::string& var)
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
mApplicationErrorCodeCategory = var;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
const fnd::List<uint64_t>& nn::hac::ApplicationControlPropertyBinary::getLocalCommunicationId() const
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
return mLocalCommunicationId;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
void nn::hac::ApplicationControlPropertyBinary::setLocalCommunicationId(const fnd::List<uint64_t>& var)
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
mLocalCommunicationId = var;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
nn::hac::nacp::LogoType nn::hac::ApplicationControlPropertyBinary::getLogoType() const
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
return mLogoType;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
void nn::hac::ApplicationControlPropertyBinary::setLogoType(nacp::LogoType var)
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
mLogoType = var;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
nn::hac::nacp::LogoHandling nn::hac::ApplicationControlPropertyBinary::getLogoHandling() const
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
return mLogoHandling;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
void nn::hac::ApplicationControlPropertyBinary::setLogoHandling(nacp::LogoHandling var)
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
mLogoHandling = var;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
nn::hac::nacp::RuntimeAocInstallMode nn::hac::ApplicationControlPropertyBinary::getRuntimeAocInstallMode() const
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
return mRuntimeAocInstallMode;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
void nn::hac::ApplicationControlPropertyBinary::setRuntimeAocInstallMode(nacp::RuntimeAocInstallMode var)
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
mRuntimeAocInstallMode = var;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
nn::hac::nacp::CrashReportMode nn::hac::ApplicationControlPropertyBinary::getCrashReportMode() const
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
return mCrashReportMode;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
void nn::hac::ApplicationControlPropertyBinary::setCrashReportMode(nacp::CrashReportMode var)
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
mCrashReportMode = var;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
nn::hac::nacp::Hdcp nn::hac::ApplicationControlPropertyBinary::getHdcp() const
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
return mHdcp;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
void nn::hac::ApplicationControlPropertyBinary::setHdcp(nacp::Hdcp var)
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
mHdcp = var;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
uint64_t nn::hac::ApplicationControlPropertyBinary::getSeedForPsuedoDeviceId() const
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
return mSeedForPsuedoDeviceId;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
void nn::hac::ApplicationControlPropertyBinary::setSeedForPsuedoDeviceId(uint64_t var)
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
mSeedForPsuedoDeviceId = var;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
const std::string& nn::hac::ApplicationControlPropertyBinary::getBcatPassphase() const
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
return mBcatPassphase;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
void nn::hac::ApplicationControlPropertyBinary::setBcatPassphase(const std::string& var)
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
mBcatPassphase = var;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
const nn::hac::ApplicationControlPropertyBinary::sStorageSize& nn::hac::ApplicationControlPropertyBinary::getUserAccountSaveDataMax() const
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
return mUserAccountSaveDataMax;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
void nn::hac::ApplicationControlPropertyBinary::setUserAccountSaveDataMax(const sStorageSize& var)
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
mUserAccountSaveDataMax = var;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
const nn::hac::ApplicationControlPropertyBinary::sStorageSize& nn::hac::ApplicationControlPropertyBinary::getDeviceSaveDataMax() const
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
return mDeviceSaveDataMax;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
void nn::hac::ApplicationControlPropertyBinary::setDeviceSaveDataMax(const sStorageSize& var)
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
mDeviceSaveDataMax = var;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
int64_t nn::hac::ApplicationControlPropertyBinary::getTemporaryStorageSize() const
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
return mTemporaryStorageSize;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
void nn::hac::ApplicationControlPropertyBinary::setTemporaryStorageSize(int64_t var)
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
mTemporaryStorageSize = var;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
const nn::hac::ApplicationControlPropertyBinary::sStorageSize& nn::hac::ApplicationControlPropertyBinary::getCacheStorageSize() const
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
return mCacheStorageSize;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
void nn::hac::ApplicationControlPropertyBinary::setCacheStorageSize(const sStorageSize& var)
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
mCacheStorageSize = var;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
int64_t nn::hac::ApplicationControlPropertyBinary::getCacheStorageDataAndJournalSizeMax() const
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
return mCacheStorageDataAndJournalSizeMax;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
void nn::hac::ApplicationControlPropertyBinary::setCacheStorageDataAndJournalSizeMax(int64_t var)
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
mCacheStorageDataAndJournalSizeMax = var;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
uint16_t nn::hac::ApplicationControlPropertyBinary::getCacheStorageIndexMax() const
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
2018-07-11 12:01:13 +00:00
|
|
|
return mCacheStorageIndexMax;
|
2018-06-11 15:00:47 +00:00
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
void nn::hac::ApplicationControlPropertyBinary::setCacheStorageIndexMax(uint16_t var)
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
2018-07-11 12:01:13 +00:00
|
|
|
mCacheStorageIndexMax = var;
|
2018-06-11 15:00:47 +00:00
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
const fnd::List<uint64_t>& nn::hac::ApplicationControlPropertyBinary::getPlayLogQueryableApplicationId() const
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
return mPlayLogQueryableApplicationId;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
void nn::hac::ApplicationControlPropertyBinary::setPlayLogQueryableApplicationId(const fnd::List<uint64_t>& var)
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
mPlayLogQueryableApplicationId = var;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
nn::hac::nacp::PlayLogQueryCapability nn::hac::ApplicationControlPropertyBinary::getPlayLogQueryCapability() const
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
return mPlayLogQueryCapability;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
void nn::hac::ApplicationControlPropertyBinary::setPlayLogQueryCapability(nacp::PlayLogQueryCapability var)
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
mPlayLogQueryCapability = var;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
nn::hac::nacp::RepairFlag nn::hac::ApplicationControlPropertyBinary::getRepairFlag() const
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
return mRepairFlag;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
void nn::hac::ApplicationControlPropertyBinary::setRepairFlag(nacp::RepairFlag var)
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
mRepairFlag = var;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
byte_t nn::hac::ApplicationControlPropertyBinary::getProgramIndex() const
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
return mProgramIndex;
|
|
|
|
}
|
|
|
|
|
2018-08-07 07:17:51 +00:00
|
|
|
void nn::hac::ApplicationControlPropertyBinary::setProgramIndex(byte_t var)
|
2018-06-11 15:00:47 +00:00
|
|
|
{
|
|
|
|
mProgramIndex = var;
|
2018-06-24 08:18:54 +00:00
|
|
|
}
|