diff options
| author | JosJuice <josjuice@gmail.com> | 2017-08-02 18:16:56 +0200 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2017-09-15 18:57:05 +0200 |
| commit | 38304da947c6b593ef94449894dc018aac633344 (patch) | |
| tree | d6d79c531ef8363a302487ec70bd9d859fcb9c35 /Source/Core/DiscIO/Filesystem.cpp | |
| parent | 0d078219358b04266206ea1e2622396db7724136 (diff) | |
DiscIO: Use Common::Lazy for loading filesystems
This simplifies FileMonitor a lot and also lets us
clean up FilesystemPanel.
Diffstat (limited to 'Source/Core/DiscIO/Filesystem.cpp')
| -rw-r--r-- | Source/Core/DiscIO/Filesystem.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/Source/Core/DiscIO/Filesystem.cpp b/Source/Core/DiscIO/Filesystem.cpp index 6171c3004f..4228afdb72 100644 --- a/Source/Core/DiscIO/Filesystem.cpp +++ b/Source/Core/DiscIO/Filesystem.cpp @@ -4,7 +4,6 @@ #include "DiscIO/Filesystem.h" #include <memory> -#include "DiscIO/FileSystemGCWii.h" #include "DiscIO/Volume.h" namespace DiscIO @@ -18,20 +17,4 @@ FileSystem::FileSystem(const Volume* volume, const Partition& partition) FileSystem::~FileSystem() = default; -std::unique_ptr<FileSystem> CreateFileSystem(const Volume* volume, const Partition& partition) -{ - if (!volume) - return nullptr; - - std::unique_ptr<FileSystem> filesystem = std::make_unique<FileSystemGCWii>(volume, partition); - - if (!filesystem) - return nullptr; - - if (!filesystem->IsValid()) - filesystem.reset(); - - return filesystem; -} - } // namespace |
