[XAM] Allow content to read license from header

This commit is contained in:
Gliniak
2024-10-06 20:14:27 +02:00
parent 1cda06d5bf
commit 9e4b2e343f
5 changed files with 47 additions and 11 deletions

View File

@@ -64,6 +64,9 @@ class XContentContainerDevice : public Device {
}
kernel::xam::XCONTENT_AGGREGATE_DATA content_header() const;
uint32_t license_mask() const {
return header_->content_header.licenses[0].license_bits;
}
protected:
XContentContainerDevice(const std::string_view mount_path,