mirror of
https://git.suyu.dev/suyu/suyu
synced 2024-11-01 04:47:53 +00:00
content_archive: Add accessors for Rights ID and SDK Version
This commit is contained in:
parent
b4164d295b
commit
e018a48460
2 changed files with 10 additions and 0 deletions
|
@ -528,6 +528,14 @@ u64 NCA::GetTitleId() const {
|
||||||
return header.title_id;
|
return header.title_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::array<u8, 16> NCA::GetRightsId() const {
|
||||||
|
return header.rights_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
u32 NCA::GetSDKVersion() const {
|
||||||
|
return header.sdk_version;
|
||||||
|
}
|
||||||
|
|
||||||
bool NCA::IsUpdate() const {
|
bool NCA::IsUpdate() const {
|
||||||
return is_update;
|
return is_update;
|
||||||
}
|
}
|
||||||
|
|
|
@ -112,6 +112,8 @@ public:
|
||||||
|
|
||||||
NCAContentType GetType() const;
|
NCAContentType GetType() const;
|
||||||
u64 GetTitleId() const;
|
u64 GetTitleId() const;
|
||||||
|
std::array<u8, 0x10> GetRightsId() const;
|
||||||
|
u32 GetSDKVersion() const;
|
||||||
bool IsUpdate() const;
|
bool IsUpdate() const;
|
||||||
|
|
||||||
VirtualFile GetRomFS() const;
|
VirtualFile GetRomFS() const;
|
||||||
|
|
Loading…
Reference in a new issue