pgl: GetHostContentMetaInfo returns a ncm::ContentMetaType

This commit is contained in:
Zachary Kirtz 2026-05-29 01:16:11 -05:00
parent 2c7e2bfaae
commit 7d38bf16cd
2 changed files with 7 additions and 5 deletions

View File

@ -41,7 +41,8 @@ namespace ams::pgl {
u32 version; u32 version;
ncm::ContentType content_type; ncm::ContentType content_type;
u8 id_offset; u8 id_offset;
u8 reserved_0E[2]; ncm::ContentMetaType content_meta_type;
u8 reserved_0F;
static constexpr ContentMetaInfo Make(u64 id, u32 version, ncm::ContentType content_type, u8 id_offset) { static constexpr ContentMetaInfo Make(u64 id, u32 version, ncm::ContentType content_type, u8 id_offset) {
return { return {

View File

@ -349,6 +349,7 @@ namespace ams::pgl::srv {
.version = reader.GetProgramVersion(), .version = reader.GetProgramVersion(),
.content_type = ncm::ContentType::Program, .content_type = ncm::ContentType::Program,
.id_offset = reader.GetProgramIndex(), .id_offset = reader.GetProgramIndex(),
.content_meta_type = reader.GetContentMetaType(),
}; };
R_SUCCEED(); R_SUCCEED();