summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO/Filesystem.cpp
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2017-05-16 23:06:32 +0200
committerGitHub <noreply@github.com>2017-05-16 23:06:32 +0200
commitfa06d10f4a09ec5f16c0653f6e3e2cbbc043e925 (patch)
tree56ee1ce35f3a7128467289ff180cd6fd56af2f50 /Source/Core/DiscIO/Filesystem.cpp
parentf4e8a01d166378bda874fdfd7063b2fcce1ac89e (diff)
parent2bcad57225b9b0a4635d62eeabbbb138d71386bf (diff)
Merge pull request #2353 from JosJuice/wii-partition-cleanup
VolumeWiiCrypted: Replace ChangePartition with a partition parameter
Diffstat (limited to 'Source/Core/DiscIO/Filesystem.cpp')
-rw-r--r--Source/Core/DiscIO/Filesystem.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/Core/DiscIO/Filesystem.cpp b/Source/Core/DiscIO/Filesystem.cpp
index 48c9a33b6f..9670ecda43 100644
--- a/Source/Core/DiscIO/Filesystem.cpp
+++ b/Source/Core/DiscIO/Filesystem.cpp
@@ -5,10 +5,12 @@
#include "DiscIO/Filesystem.h"
#include <memory>
#include "DiscIO/FileSystemGCWii.h"
+#include "DiscIO/Volume.h"
namespace DiscIO
{
-IFileSystem::IFileSystem(const IVolume* _rVolume) : m_rVolume(_rVolume)
+IFileSystem::IFileSystem(const IVolume* _rVolume, const Partition& partition)
+ : m_rVolume(_rVolume), m_partition(partition)
{
}
@@ -16,12 +18,12 @@ IFileSystem::~IFileSystem()
{
}
-std::unique_ptr<IFileSystem> CreateFileSystem(const IVolume* volume)
+std::unique_ptr<IFileSystem> CreateFileSystem(const IVolume* volume, const Partition& partition)
{
if (!volume)
return nullptr;
- std::unique_ptr<IFileSystem> filesystem = std::make_unique<CFileSystemGCWii>(volume);
+ std::unique_ptr<IFileSystem> filesystem = std::make_unique<CFileSystemGCWii>(volume, partition);
if (!filesystem)
return nullptr;