aboutsummaryrefslogtreecommitdiff
path: root/src/core/file_sys/patch_manager.h
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2019-06-24 19:05:50 -0400
committerZach Hilman <zachhilman@gmail.com>2019-06-24 19:05:50 -0400
commit7891b418d46e4cd7cc6d3135cd0ec66bb4f2dfa5 (patch)
tree700e2744b63a859327283040f17a8d4b43ba0f04 /src/core/file_sys/patch_manager.h
parenta866b5864b67f8a5f303a71ca7d46e6427f5bc7b (diff)
patch_manager: Add getter for title version
Diffstat (limited to 'src/core/file_sys/patch_manager.h')
-rw-r--r--src/core/file_sys/patch_manager.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/file_sys/patch_manager.h b/src/core/file_sys/patch_manager.h
index 769f8c6f03..f82b4ae1e3 100644
--- a/src/core/file_sys/patch_manager.h
+++ b/src/core/file_sys/patch_manager.h
@@ -66,8 +66,10 @@ public:
std::map<std::string, std::string, std::less<>> GetPatchVersionNames(
VirtualFile update_raw = nullptr) const;
- // Given title_id of the program, attempts to get the control data of the update and parse it,
- // falling back to the base control data.
+ std::optional<u32> GetGameVersion() const;
+
+ // Given title_id of the program, attempts to get the control data of the update and parse
+ // it, falling back to the base control data.
std::pair<std::unique_ptr<NACP>, VirtualFile> GetControlMetadata() const;
// Version of GetControlMetadata that takes an arbitrary NCA