summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/GameList/GameFile.cpp
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2015-01-17 13:21:02 +0100
committerJosJuice <josjuice@gmail.com>2015-01-17 13:21:02 +0100
commitace060748b572063b33acee13c19000783a6cdde (patch)
tree0569a779c5d7fec8f954e09ef732b1972f4021a5 /Source/Core/DolphinQt/GameList/GameFile.cpp
parent11a36ca8e28b233f34f5c48be19fabeea92f6d38 (diff)
Don't read from disk when checking volume type
Should be faster than relying on the OS to cache the magic words. Also gets rid of the odd recursive call in VolumeDirectory.
Diffstat (limited to 'Source/Core/DolphinQt/GameList/GameFile.cpp')
-rw-r--r--Source/Core/DolphinQt/GameList/GameFile.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/DolphinQt/GameList/GameFile.cpp b/Source/Core/DolphinQt/GameList/GameFile.cpp
index f5f4dd9899..78e470f6b3 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;