diff options
| author | Ryan Houdek <Sonicadvance1@gmail.com> | 2015-01-21 13:45:28 -0600 |
|---|---|---|
| committer | Ryan Houdek <Sonicadvance1@gmail.com> | 2015-01-21 13:45:28 -0600 |
| commit | f9fc9d47c0ac7692afcdc06582803776e109e0c0 (patch) | |
| tree | 7fa71a5b089ded8d87938ad1e03deb5ecf9fd80d /Source/Core/DolphinQt/GameList/GameFile.cpp | |
| parent | 4c9fd63562a7514e16fb21f4bdd6a039fde1cb4c (diff) | |
| parent | ace060748b572063b33acee13c19000783a6cdde (diff) | |
Merge pull request #1895 from JosJuice/isvolumewiidisc
Don't read from disk when checking volume type
Diffstat (limited to 'Source/Core/DolphinQt/GameList/GameFile.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/GameList/GameFile.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/DolphinQt/GameList/GameFile.cpp b/Source/Core/DolphinQt/GameList/GameFile.cpp index cd56d39b85..628f00f06f 100644 --- a/Source/Core/DolphinQt/GameList/GameFile.cpp +++ b/Source/Core/DolphinQt/GameList/GameFile.cpp @@ -61,8 +61,8 @@ GameFile::GameFile(const QString& fileName) if (volume != nullptr) { - if (!DiscIO::IsVolumeWadFile(volume)) - m_platform = DiscIO::IsVolumeWiiDisc(volume) ? WII_DISC : GAMECUBE_DISC; + if (!volume->IsWadFile()) + m_platform = volume->IsWiiDisc() ? WII_DISC : GAMECUBE_DISC; else m_platform = WII_WAD; @@ -305,7 +305,7 @@ const QString GameFile::GetWiiFSPath() const if (volume == nullptr) return ret; - if (DiscIO::IsVolumeWiiDisc(volume) || DiscIO::IsVolumeWadFile(volume)) + if (volume->IsWiiDisc() || volume->IsWadFile()) { std::string path; u64 title; |
