diff options
author | bunnei <bunneidev@gmail.com> | 2018-10-16 00:34:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-16 00:34:02 +0200 |
commit | 9b21fbd1eb6829c5708806218b4c46818ea0e22e (patch) | |
tree | 04ec4974cbf020c037ca6bedfcc84034db4bd390 /src/core/file_sys | |
parent | Merge pull request #1499 from lioncash/nro (diff) | |
parent | aoc: Read DLC base title ID from RegisteredCache (diff) | |
download | yuzu-9b21fbd1eb6829c5708806218b4c46818ea0e22e.tar yuzu-9b21fbd1eb6829c5708806218b4c46818ea0e22e.tar.gz yuzu-9b21fbd1eb6829c5708806218b4c46818ea0e22e.tar.bz2 yuzu-9b21fbd1eb6829c5708806218b4c46818ea0e22e.tar.lz yuzu-9b21fbd1eb6829c5708806218b4c46818ea0e22e.tar.xz yuzu-9b21fbd1eb6829c5708806218b4c46818ea0e22e.tar.zst yuzu-9b21fbd1eb6829c5708806218b4c46818ea0e22e.zip |
Diffstat (limited to 'src/core/file_sys')
-rw-r--r-- | src/core/file_sys/control_metadata.cpp | 4 | ||||
-rw-r--r-- | src/core/file_sys/control_metadata.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/core/file_sys/control_metadata.cpp b/src/core/file_sys/control_metadata.cpp index 5b1177a03..6bb588080 100644 --- a/src/core/file_sys/control_metadata.cpp +++ b/src/core/file_sys/control_metadata.cpp @@ -56,6 +56,10 @@ u64 NACP::GetTitleId() const { return raw->title_id; } +u64 NACP::GetDLCBaseTitleId() const { + return raw->dlc_base_title_id; +} + std::string NACP::GetVersionString() const { return Common::StringFromFixedZeroTerminatedBuffer(raw->version_string.data(), 0x10); } diff --git a/src/core/file_sys/control_metadata.h b/src/core/file_sys/control_metadata.h index 43d6f0719..141f7e056 100644 --- a/src/core/file_sys/control_metadata.h +++ b/src/core/file_sys/control_metadata.h @@ -79,6 +79,7 @@ public: std::string GetApplicationName(Language language = Language::Default) const; std::string GetDeveloperName(Language language = Language::Default) const; u64 GetTitleId() const; + u64 GetDLCBaseTitleId() const; std::string GetVersionString() const; private: |