diff options
| author | Mat M <mathew1800@gmail.com> | 2017-05-06 19:37:25 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-05-06 19:37:25 -0400 |
| commit | 4ba786a1645621238931246f97bc9ebc241c86c3 (patch) | |
| tree | 22cca47421c7f2302d5fdea020e1151f10f5d05e /Source/Core/DolphinWX/ISOFile.cpp | |
| parent | c36d24a851ea8dc00c55de081be6f1bfa2f802c0 (diff) | |
| parent | 71d105e545fc31e51682b27ee1f6e35a18c4ea9c (diff) | |
Merge pull request #5381 from JosJuice/cached-title-id
DolphinWX: Use title ID from ISOFile when possible
Diffstat (limited to 'Source/Core/DolphinWX/ISOFile.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/ISOFile.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/Source/Core/DolphinWX/ISOFile.cpp b/Source/Core/DolphinWX/ISOFile.cpp index 9d6242688b..ac4c901894 100644 --- a/Source/Core/DolphinWX/ISOFile.cpp +++ b/Source/Core/DolphinWX/ISOFile.cpp @@ -361,18 +361,11 @@ std::vector<DiscIO::Language> GameListItem::GetLanguages() const const std::string GameListItem::GetWiiFSPath() const { - std::unique_ptr<DiscIO::IVolume> iso(DiscIO::CreateVolumeFromFilename(m_FileName)); std::string ret; - if (iso == nullptr) - return ret; - - if (iso->GetVolumeType() != DiscIO::Platform::GAMECUBE_DISC) + if (m_Platform != DiscIO::Platform::GAMECUBE_DISC) { - u64 title_id = 0; - iso->GetTitleID(&title_id); - - const std::string path = Common::GetTitleDataPath(title_id, Common::FROM_CONFIGURED_ROOT); + const std::string path = Common::GetTitleDataPath(m_title_id, Common::FROM_CONFIGURED_ROOT); if (!File::Exists(path)) File::CreateFullPath(path); |
