From 5021b4a567fad9a258f2b0fc397912f499e4cb1d Mon Sep 17 00:00:00 2001 From: JosJuice Date: Tue, 28 Jul 2015 16:56:25 +0200 Subject: Filesystem: Replace FileInfo struct with interface GC/Wii filesystem internals shouldn't be exposed to other classes. This change isn't especially useful by itself, but it opens up the way for some neat stuff in the following commits. --- Source/Core/DiscIO/Filesystem.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Source/Core/DiscIO/Filesystem.cpp') diff --git a/Source/Core/DiscIO/Filesystem.cpp b/Source/Core/DiscIO/Filesystem.cpp index a955c1f402..94127e5e90 100644 --- a/Source/Core/DiscIO/Filesystem.cpp +++ b/Source/Core/DiscIO/Filesystem.cpp @@ -9,6 +9,10 @@ namespace DiscIO { +FileInfo::~FileInfo() +{ +} + FileSystem::FileSystem(const Volume* _rVolume, const Partition& partition) : m_rVolume(_rVolume), m_partition(partition) { -- cgit v1.2.3 From 0b7d2e7c688a1e5e45c6d53fdcc89e4663e6d299 Mon Sep 17 00:00:00 2001 From: JosJuice Date: Sun, 9 Aug 2015 20:53:38 +0200 Subject: Filesystem: Modernize variable names --- Source/Core/DiscIO/Filesystem.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Core/DiscIO/Filesystem.cpp') diff --git a/Source/Core/DiscIO/Filesystem.cpp b/Source/Core/DiscIO/Filesystem.cpp index 94127e5e90..807fb6c3eb 100644 --- a/Source/Core/DiscIO/Filesystem.cpp +++ b/Source/Core/DiscIO/Filesystem.cpp @@ -13,8 +13,8 @@ FileInfo::~FileInfo() { } -FileSystem::FileSystem(const Volume* _rVolume, const Partition& partition) - : m_rVolume(_rVolume), m_partition(partition) +FileSystem::FileSystem(const Volume* volume, const Partition& partition) + : m_volume(volume), m_partition(partition) { } -- cgit v1.2.3 From 583406d900bd0ca9111135c6a9e526aed67e8322 Mon Sep 17 00:00:00 2001 From: JosJuice Date: Tue, 13 Jun 2017 23:05:30 +0200 Subject: Filesystem: Make destructors = default --- Source/Core/DiscIO/Filesystem.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'Source/Core/DiscIO/Filesystem.cpp') diff --git a/Source/Core/DiscIO/Filesystem.cpp b/Source/Core/DiscIO/Filesystem.cpp index 807fb6c3eb..6171c3004f 100644 --- a/Source/Core/DiscIO/Filesystem.cpp +++ b/Source/Core/DiscIO/Filesystem.cpp @@ -9,18 +9,14 @@ namespace DiscIO { -FileInfo::~FileInfo() -{ -} +FileInfo::~FileInfo() = default; FileSystem::FileSystem(const Volume* volume, const Partition& partition) : m_volume(volume), m_partition(partition) { } -FileSystem::~FileSystem() -{ -} +FileSystem::~FileSystem() = default; std::unique_ptr CreateFileSystem(const Volume* volume, const Partition& partition) { -- cgit v1.2.3