From 0ed31181411a9aa98dc194c6179681e670f186cb Mon Sep 17 00:00:00 2001 From: JosJuice Date: Thu, 4 Jun 2015 16:26:36 +0200 Subject: 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. --- Source/Core/DiscIO/FileMonitor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/DiscIO/FileMonitor.cpp') 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); -- cgit v1.2.3