diff options
| author | Léo Lam <leo@innovatetechnologi.es> | 2017-02-25 01:03:22 +0100 |
|---|---|---|
| committer | Léo Lam <leo@innovatetechnologi.es> | 2017-02-27 21:26:28 +0100 |
| commit | 6327a298477d4b91d9dae477225f7f5090bb51d9 (patch) | |
| tree | fb927c3c772668e0f35de411a0c3f4f5ba3e36a6 /Source/Core/DiscIO/NANDContentLoader.cpp | |
| parent | 345d252ef3633629d1da5f5ce3fece80d3abba93 (diff) | |
IOS/ES: Implement ES_Export* ioctlvs
This should allow channels to be copied to the SD properly.
Diffstat (limited to 'Source/Core/DiscIO/NANDContentLoader.cpp')
| -rw-r--r-- | Source/Core/DiscIO/NANDContentLoader.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/Core/DiscIO/NANDContentLoader.cpp b/Source/Core/DiscIO/NANDContentLoader.cpp index 1204550fab..02a2462ab9 100644 --- a/Source/Core/DiscIO/NANDContentLoader.cpp +++ b/Source/Core/DiscIO/NANDContentLoader.cpp @@ -161,6 +161,14 @@ bool CNANDContentLoader::IsValid() const return m_Valid && m_tmd.IsValid(); } +const SNANDContent* CNANDContentLoader::GetContentByID(u32 id) const +{ + const auto iterator = std::find_if(m_Content.begin(), m_Content.end(), [id](const auto& content) { + return content.m_metadata.id == id; + }); + return iterator != m_Content.end() ? &*iterator : nullptr; +} + const SNANDContent* CNANDContentLoader::GetContentByIndex(int index) const { for (auto& Content : m_Content) |
