summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/ISOFile.cpp
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2017-05-06 17:08:18 +0200
committerJosJuice <josjuice@gmail.com>2017-05-06 18:39:51 +0200
commit71d105e545fc31e51682b27ee1f6e35a18c4ea9c (patch)
tree22cca47421c7f2302d5fdea020e1151f10f5d05e /Source/Core/DolphinWX/ISOFile.cpp
parentc36d24a851ea8dc00c55de081be6f1bfa2f802c0 (diff)
DolphinWX: Use title ID from ISOFile when possible
This skips creating volume objects, which can take a while.
Diffstat (limited to 'Source/Core/DolphinWX/ISOFile.cpp')
-rw-r--r--Source/Core/DolphinWX/ISOFile.cpp11
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);