diff options
| author | Léo Lam <leo@innovatetechnologi.es> | 2017-02-14 13:15:02 +0100 |
|---|---|---|
| committer | Léo Lam <leo@innovatetechnologi.es> | 2017-02-26 19:46:30 +0100 |
| commit | 44a3db21e4b7fe20ee2ed6253990f5981b3f12f9 (patch) | |
| tree | b518511c1dfd1b79e700b3d90da9ff370342eafe /Source/Core/DiscIO/NANDContentLoader.cpp | |
| parent | 5104caf6a647dac47509a8e0540a2eb04c1b1ec7 (diff) | |
ES: Make sure the TMD and ticket are valid before use
Diffstat (limited to 'Source/Core/DiscIO/NANDContentLoader.cpp')
| -rw-r--r-- | Source/Core/DiscIO/NANDContentLoader.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/Core/DiscIO/NANDContentLoader.cpp b/Source/Core/DiscIO/NANDContentLoader.cpp index 62e2e174cb..1204550fab 100644 --- a/Source/Core/DiscIO/NANDContentLoader.cpp +++ b/Source/Core/DiscIO/NANDContentLoader.cpp @@ -156,6 +156,11 @@ CNANDContentLoader::~CNANDContentLoader() { } +bool CNANDContentLoader::IsValid() const +{ + return m_Valid && m_tmd.IsValid(); +} + const SNANDContent* CNANDContentLoader::GetContentByIndex(int index) const { for (auto& Content : m_Content) |
