mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-28 05:34:11 -04:00
ncm: GetContentAccessibilities, GetContentInfo*
This commit is contained in:
parent
9929517a83
commit
05de5538d6
15 changed files with 231 additions and 51 deletions
|
@ -790,7 +790,7 @@ namespace ams::ncm {
|
|||
R_TRY(tmp_buffer.Initialize(reader.CalculateConvertInstallContentMetaSize()));
|
||||
|
||||
/* Convert packaged content meta to install content meta. */
|
||||
reader.ConvertToInstallContentMeta(tmp_buffer.Get(), tmp_buffer.GetSize(), InstallContentInfo::Make(ContentInfo::Make(content_id, size, ContentType::Meta), meta_type));
|
||||
reader.ConvertToInstallContentMeta(tmp_buffer.Get(), tmp_buffer.GetSize(), InstallContentInfo::Make(ContentInfo::Make(content_id, size, ContentInfo::DefaultContentAttributes, ContentType::Meta), meta_type));
|
||||
|
||||
/* Push the content meta. */
|
||||
m_data->Push(tmp_buffer.Get(), tmp_buffer.GetSize());
|
||||
|
@ -1028,7 +1028,7 @@ namespace ams::ncm {
|
|||
InstallContentInfo InstallTaskBase::MakeInstallContentInfoFrom(const InstallContentMetaInfo &info, const PlaceHolderId &placeholder_id, util::optional<bool> is_tmp) {
|
||||
return {
|
||||
.digest = info.digest,
|
||||
.info = ContentInfo::Make(info.content_id, info.content_size, ContentType::Meta, 0),
|
||||
.info = ContentInfo::Make(info.content_id, info.content_size, ContentInfo::DefaultContentAttributes, ContentType::Meta, 0),
|
||||
.placeholder_id = placeholder_id,
|
||||
.meta_type = info.key.type,
|
||||
.install_state = InstallState::Prepared,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue