From 71d105e545fc31e51682b27ee1f6e35a18c4ea9c Mon Sep 17 00:00:00 2001 From: JosJuice Date: Sat, 6 May 2017 17:08:18 +0200 Subject: DolphinWX: Use title ID from ISOFile when possible This skips creating volume objects, which can take a while. --- Source/Core/DolphinWX/ISOFile.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'Source/Core/DolphinWX/ISOFile.cpp') 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 GameListItem::GetLanguages() const const std::string GameListItem::GetWiiFSPath() const { - std::unique_ptr 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); -- cgit v1.2.3