summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO/FileMonitor.cpp
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2015-06-04 16:26:36 +0200
committerJosJuice <josjuice@gmail.com>2015-06-04 16:26:36 +0200
commit0ed31181411a9aa98dc194c6179681e670f186cb (patch)
tree621555a1dcf3421f4e0dff039fcc58b7e5a527a1 /Source/Core/DiscIO/FileMonitor.cpp
parentf5b0468179f1c3c15cfb5957218ee9f27cb47d77 (diff)
Volume: Return volume type as an enum
ISOFile and GameFile were using IsWiiDisc() and IsWadFile() to set an enum value. The volume might as well return an enum directly. I increased the Qt CACHE_REVISION because m_platform now is saved as u32 instead of int, but increasing the wx CACHE_REVISION is not necessary.
Diffstat (limited to 'Source/Core/DiscIO/FileMonitor.cpp')
-rw-r--r--Source/Core/DiscIO/FileMonitor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/DiscIO/FileMonitor.cpp b/Source/Core/DiscIO/FileMonitor.cpp
index 7a3c28fd8a..0583d17a44 100644
--- a/Source/Core/DiscIO/FileMonitor.cpp
+++ b/Source/Core/DiscIO/FileMonitor.cpp
@@ -76,7 +76,7 @@ void ReadFileSystem(const std::string& filename)
if (!OpenISO)
return;
- if (!OpenISO->IsWadFile())
+ if (OpenISO->GetVolumeType() != DiscIO::IVolume::WII_WAD)
{
pFileSystem = DiscIO::CreateFileSystem(OpenISO);