ncm: update for new 17.0.0 apis
This commit is contained in:
1 parent
ef9b111bbf
commit
c95741142e
31 files changed
+249
-7
No files matched your search
@@ -518,4 +518,20 @@ namespace ams::ncm {
|
||||
R_RETURN(this->GetContentInfoImpl(out_content_info.GetPointer(), key, type, util::make_optional(id_offset)));
|
||||
}
|
||||
|
||||
Result ContentMetaDatabaseImpl::GetPlatform(sf::Out<ncm::ContentMetaPlatform> out, const ContentMetaKey &key) {
|
||||
R_TRY(this->EnsureEnabled());
|
||||
|
||||
/* Obtain the content meta for the key. */
|
||||
const void *meta;
|
||||
size_t meta_size;
|
||||
R_TRY(this->GetContentMetaPointer(&meta, &meta_size, key));
|
||||
|
||||
/* Create a reader. */
|
||||
ContentMetaReader reader(meta, meta_size);
|
||||
|
||||
/* Set the ouput value. */
|
||||
out.SetValue(reader.GetHeader()->platform);
|
||||
R_SUCCEED();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user