mirror of
https://github.com/jakcron/nstool
synced 2024-11-14 17:56:39 +00:00
[nx|nstool] Fix typo.
This commit is contained in:
parent
ca13bbd24b
commit
1bfd0abb6a
4 changed files with 14 additions and 14 deletions
|
@ -197,8 +197,8 @@ namespace nx
|
|||
int64_t getCacheStorageDataAndJournalSizeMax() const;
|
||||
void setCacheStorageDataAndJournalSizeMax(int64_t var);
|
||||
|
||||
uint16_t getCacheStorageIndex() const;
|
||||
void setCacheStorageIndex(uint16_t var);
|
||||
uint16_t getCacheStorageIndexMax() const;
|
||||
void setCacheStorageIndexMax(uint16_t var);
|
||||
|
||||
const fnd::List<uint64_t>& getPlayLogQueryableApplicationId() const;
|
||||
void setPlayLogQueryableApplicationId(const fnd::List<uint64_t>& var);
|
||||
|
@ -253,7 +253,7 @@ namespace nx
|
|||
int64_t mTemporaryStorageSize;
|
||||
sStorageSize mCacheStorageSize;
|
||||
int64_t mCacheStorageDataAndJournalSizeMax;
|
||||
uint16_t mCacheStorageIndex;
|
||||
uint16_t mCacheStorageIndexMax;
|
||||
fnd::List<uint64_t> mPlayLogQueryableApplicationId;
|
||||
nacp::PlayLogQueryCapability mPlayLogQueryCapability;
|
||||
nacp::RepairFlag mRepairFlag;
|
||||
|
|
|
@ -208,7 +208,7 @@ namespace nx
|
|||
le_uint64_t cache_storage_size;
|
||||
le_uint64_t cache_storage_journal_size;
|
||||
le_uint64_t cache_storage_data_and_journal_size_max;
|
||||
le_uint16_t cache_storage_index;
|
||||
le_uint16_t cache_storage_index_max;
|
||||
byte_t reserved_03[6];
|
||||
le_uint64_t play_log_queryable_application_id[nacp::kPlayLogQueryableApplicationIdCount];
|
||||
byte_t play_log_query_capability;
|
||||
|
|
|
@ -46,7 +46,7 @@ void nx::ApplicationControlPropertyBinary::operator=(const ApplicationControlPro
|
|||
mTemporaryStorageSize = other.mTemporaryStorageSize;
|
||||
mCacheStorageSize = other.mCacheStorageSize;
|
||||
mCacheStorageDataAndJournalSizeMax = other.mCacheStorageDataAndJournalSizeMax;
|
||||
mCacheStorageIndex = other.mCacheStorageIndex;
|
||||
mCacheStorageIndexMax = other.mCacheStorageIndexMax;
|
||||
mPlayLogQueryableApplicationId = other.mPlayLogQueryableApplicationId;
|
||||
mPlayLogQueryCapability = other.mPlayLogQueryCapability;
|
||||
mRepairFlag = other.mRepairFlag;
|
||||
|
@ -88,7 +88,7 @@ bool nx::ApplicationControlPropertyBinary::operator==(const ApplicationControlPr
|
|||
&& (mTemporaryStorageSize == other.mTemporaryStorageSize) \
|
||||
&& (mCacheStorageSize == other.mCacheStorageSize) \
|
||||
&& (mCacheStorageDataAndJournalSizeMax == other.mCacheStorageDataAndJournalSizeMax) \
|
||||
&& (mCacheStorageIndex == other.mCacheStorageIndex) \
|
||||
&& (mCacheStorageIndexMax == other.mCacheStorageIndexMax) \
|
||||
&& (mPlayLogQueryableApplicationId == other.mPlayLogQueryableApplicationId) \
|
||||
&& (mPlayLogQueryCapability == other.mPlayLogQueryCapability) \
|
||||
&& (mRepairFlag == other.mRepairFlag) \
|
||||
|
@ -157,7 +157,7 @@ void nx::ApplicationControlPropertyBinary::toBytes()
|
|||
{
|
||||
data->play_log_queryable_application_id[i] = mPlayLogQueryableApplicationId[i];
|
||||
}
|
||||
data->cache_storage_index = mCacheStorageIndex;
|
||||
data->cache_storage_index = mCacheStorageIndexMax;
|
||||
data->program_index = mProgramIndex;
|
||||
|
||||
// sizes
|
||||
|
@ -245,7 +245,7 @@ void nx::ApplicationControlPropertyBinary::fromBytes(const byte_t* bytes, size_t
|
|||
if (data->play_log_queryable_application_id[i].get() != 0)
|
||||
mPlayLogQueryableApplicationId.addElement(data->play_log_queryable_application_id[i].get());
|
||||
}
|
||||
mCacheStorageIndex = data->cache_storage_index.get();
|
||||
mCacheStorageIndexMax = data->cache_storage_index.get();
|
||||
mProgramIndex = data->program_index;
|
||||
|
||||
// sizes
|
||||
|
@ -305,7 +305,7 @@ void nx::ApplicationControlPropertyBinary::clear()
|
|||
mTemporaryStorageSize = 0;
|
||||
mCacheStorageSize = {0, 0};
|
||||
mCacheStorageDataAndJournalSizeMax = 0;
|
||||
mCacheStorageIndex = 0;
|
||||
mCacheStorageIndexMax = 0;
|
||||
mPlayLogQueryableApplicationId.clear();
|
||||
mPlayLogQueryCapability = nacp::PLQC_None;
|
||||
mRepairFlag = nacp::REPF_None;
|
||||
|
@ -642,14 +642,14 @@ void nx::ApplicationControlPropertyBinary::setCacheStorageDataAndJournalSizeMax(
|
|||
mCacheStorageDataAndJournalSizeMax = var;
|
||||
}
|
||||
|
||||
uint16_t nx::ApplicationControlPropertyBinary::getCacheStorageIndex() const
|
||||
uint16_t nx::ApplicationControlPropertyBinary::getCacheStorageIndexMax() const
|
||||
{
|
||||
return mCacheStorageIndex;
|
||||
return mCacheStorageIndexMax;
|
||||
}
|
||||
|
||||
void nx::ApplicationControlPropertyBinary::setCacheStorageIndex(uint16_t var)
|
||||
void nx::ApplicationControlPropertyBinary::setCacheStorageIndexMax(uint16_t var)
|
||||
{
|
||||
mCacheStorageIndex = var;
|
||||
mCacheStorageIndexMax = var;
|
||||
}
|
||||
|
||||
const fnd::List<uint64_t>& nx::ApplicationControlPropertyBinary::getPlayLogQueryableApplicationId() const
|
||||
|
|
|
@ -569,7 +569,7 @@ void NacpProcess::displayNacp()
|
|||
printf(" Size: %s\n", getSaveDataSizeStr(mNacp.getCacheStorageSize().size).c_str());
|
||||
printf(" JournalSize: %s\n", getSaveDataSizeStr(mNacp.getCacheStorageSize().journal_size).c_str());
|
||||
printf(" MaxDataAndJournalSize: %s\n", getSaveDataSizeStr(mNacp.getCacheStorageDataAndJournalSizeMax()).c_str());
|
||||
printf(" StorageIndex: 0x%" PRIx16 "\n", mNacp.getCacheStorageIndex());
|
||||
printf(" StorageIndexMax: 0x%" PRIx16 "\n", mNacp.getCacheStorageIndexMax());
|
||||
}
|
||||
printf(" Other Flags:\n");
|
||||
printf(" StartupUserAccount: %s\n", getStartupUserAccountStr(mNacp.getStartupUserAccount()));
|
||||
|
|
Loading…
Reference in a new issue