diff --git a/libraries/libstratosphere/include/stratosphere/ncm/ncm_content_meta.hpp b/libraries/libstratosphere/include/stratosphere/ncm/ncm_content_meta.hpp index 820ac073a..9e296b3a4 100644 --- a/libraries/libstratosphere/include/stratosphere/ncm/ncm_content_meta.hpp +++ b/libraries/libstratosphere/include/stratosphere/ncm/ncm_content_meta.hpp @@ -197,6 +197,18 @@ namespace ams::ncm { return nullptr; } + s64 CalculateContentRequiredSize() const { + s64 required_size = 0; + for (size_t i = 0; i < this->GetContentCount(); i++) { + required_size += CalculateRequiredSize(this->GetContentInfo(i)->info.GetSize()); + } + return required_size; + } + + void SetStorageId(StorageId storage_id) { + this->GetWritableHeader()->storage_id = static_cast(storage_id); + } + public: const void *GetData() const { return this->data; @@ -295,19 +307,6 @@ namespace ams::ncm { std::optional GetApplicationId() const { return this->GetApplicationId(this->GetKey()); } - - protected: - s64 CalculateContentRequiredSize() const { - s64 required_size = 0; - for (size_t i = 0; i < this->GetContentCount(); i++) { - required_size += CalculateRequiredSize(this->GetContentInfo(i)->info.GetSize()); - } - return required_size; - } - - void SetStorageId(StorageId storage_id) { - this->GetWritableHeader()->storage_id = static_cast(storage_id); - } }; class ContentMetaReader : public ContentMetaAccessor {