diff options
| author | Leo Lam <leolino.lam@gmail.com> | 2017-05-14 23:35:43 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-05-14 23:35:43 +0200 |
| commit | ed5e98c3cc1d43cd8dd18ede5ae2a81f5221b681 (patch) | |
| tree | 6d5b60548084dab725de8dbf1cb5ea71c1dc81a6 /Source/Core/DolphinWX/ISOFile.cpp | |
| parent | 072b24a3d243cfe81a8d24c77c31c1d7248749f1 (diff) | |
| parent | aa3dc9a057ae6c8422f496bf01bbfb3c6b805b7e (diff) | |
Merge pull request #5419 from leoetlino/import-code-reuse
Reuse the IOS code for WAD installation
Diffstat (limited to 'Source/Core/DolphinWX/ISOFile.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/ISOFile.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/Core/DolphinWX/ISOFile.cpp b/Source/Core/DolphinWX/ISOFile.cpp index 46e076d734..e45f8b3fbf 100644 --- a/Source/Core/DolphinWX/ISOFile.cpp +++ b/Source/Core/DolphinWX/ISOFile.cpp @@ -28,6 +28,7 @@ #include "Core/Boot/Boot.h" #include "Core/ConfigManager.h" +#include "Core/IOS/ES/Formats.h" #include "DiscIO/Blob.h" #include "DiscIO/Enums.h" @@ -177,6 +178,17 @@ GameListItem::~GameListItem() { } +bool GameListItem::IsValid() const +{ + if (!m_Valid) + return false; + + if (m_Platform == DiscIO::Platform::WII_WAD && !IOS::ES::IsChannel(m_title_id)) + return false; + + return true; +} + void GameListItem::ReloadINI() { if (!IsValid()) |
