summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO/Filesystem.cpp
diff options
context:
space:
mode:
authorAnthony <Helios747@users.noreply.github.com>2017-03-20 12:46:19 -0700
committerGitHub <noreply@github.com>2017-03-20 12:46:19 -0700
commit26bb26fe54f3493ddb349376bb2f53147b9bae59 (patch)
treea54d31d4011691eeebcb5a2be11e0bf3a7d5a8f1 /Source/Core/DiscIO/Filesystem.cpp
parent50faffc9c22dd19701cd023434fb357d6851876e (diff)
parent98b4ff12f4e42c302c69ac20903b198876fad836 (diff)
Merge pull request #4901 from JosJuice/filemonitor-redesign
FileMonitor redesign
Diffstat (limited to 'Source/Core/DiscIO/Filesystem.cpp')
-rw-r--r--Source/Core/DiscIO/Filesystem.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Core/DiscIO/Filesystem.cpp b/Source/Core/DiscIO/Filesystem.cpp
index 48da2b6e23..48c9a33b6f 100644
--- a/Source/Core/DiscIO/Filesystem.cpp
+++ b/Source/Core/DiscIO/Filesystem.cpp
@@ -18,6 +18,9 @@ IFileSystem::~IFileSystem()
std::unique_ptr<IFileSystem> CreateFileSystem(const IVolume* volume)
{
+ if (!volume)
+ return nullptr;
+
std::unique_ptr<IFileSystem> filesystem = std::make_unique<CFileSystemGCWii>(volume);
if (!filesystem)