diff options
| author | Leo Lam <leolino.lam@gmail.com> | 2017-09-15 19:30:05 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-09-15 19:30:05 +0200 |
| commit | 7cb8d6612c6df51073037b56ebc866f180aecd71 (patch) | |
| tree | 634e4c4d34472c6f2e49fbd48bebb6bb5f82de63 /Source/Core/DiscIO/Filesystem.cpp | |
| parent | 7caf44c8b5a8a435ad1d9db3b2444db614d329eb (diff) | |
| parent | f294599e734f2391db9e74b6454752e75fdf368c (diff) | |
Merge pull request #5870 from JosJuice/lazy-filesystem
DiscIO: Use Common::Lazy more
Diffstat (limited to 'Source/Core/DiscIO/Filesystem.cpp')
| -rw-r--r-- | Source/Core/DiscIO/Filesystem.cpp | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/Source/Core/DiscIO/Filesystem.cpp b/Source/Core/DiscIO/Filesystem.cpp index 6171c3004f..9e5336db5d 100644 --- a/Source/Core/DiscIO/Filesystem.cpp +++ b/Source/Core/DiscIO/Filesystem.cpp @@ -3,35 +3,11 @@ // Refer to the license.txt file included. #include "DiscIO/Filesystem.h" -#include <memory> -#include "DiscIO/FileSystemGCWii.h" -#include "DiscIO/Volume.h" namespace DiscIO { FileInfo::~FileInfo() = default; -FileSystem::FileSystem(const Volume* volume, const Partition& partition) - : m_volume(volume), m_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 |
