summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO/FileMonitor.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/DiscIO/FileMonitor.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/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 16c110716e..830cbfac41 100644
--- a/Source/Core/DiscIO/FileMonitor.cpp
+++ b/Source/Core/DiscIO/FileMonitor.cpp
@@ -79,7 +79,7 @@ void ReadFileSystem(const std::string& filename)
if (!OpenISO)
return;
- if (!DiscIO::IsVolumeWadFile(OpenISO))
+ if (!OpenISO->IsWadFile())
{
pFileSystem = DiscIO::CreateFileSystem(OpenISO);