diff options
| author | Anthony <Helios747@users.noreply.github.com> | 2017-02-27 13:03:37 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-02-27 13:03:37 -0800 |
| commit | 1d69e23be0de9d1bafc87e58d71b1faa6dd1e0be (patch) | |
| tree | b4ad5acb85800ecb96778e4f03ddee984b55fd4e /Source/Core/DiscIO/NANDContentLoader.cpp | |
| parent | c4137c28800ac7c8af398d98aee333717448bc86 (diff) | |
| parent | 6edcba4af8919b51f4c0f9912519d77a5ac172a0 (diff) | |
Merge pull request #4962 from leoetlino/es-fixes
IOS/ES: Implement the Export ioctlvs + minor fixes (fix the System Menu's SD channel feature)
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) |
