diff options
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); |
