diff options
| author | JosJuice <josjuice@gmail.com> | 2015-07-28 16:56:25 +0200 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2017-06-13 22:37:43 +0200 |
| commit | 5021b4a567fad9a258f2b0fc397912f499e4cb1d (patch) | |
| tree | aa06f212fde2bb9bfdcdd6fb8f771da8709ac324 /Source/Core/DiscIO/DiscScrubber.cpp | |
| parent | 95bc57cff3f81f98b172d20a20b503a332fa2603 (diff) | |
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.
Diffstat (limited to 'Source/Core/DiscIO/DiscScrubber.cpp')
| -rw-r--r-- | Source/Core/DiscIO/DiscScrubber.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/Core/DiscIO/DiscScrubber.cpp b/Source/Core/DiscIO/DiscScrubber.cpp index 6b56d8b607..70f9bed79a 100644 --- a/Source/Core/DiscIO/DiscScrubber.cpp +++ b/Source/Core/DiscIO/DiscScrubber.cpp @@ -16,6 +16,8 @@ #include "Common/Logging/Log.h" #include "DiscIO/DiscScrubber.h" #include "DiscIO/Filesystem.h" +// TODO: eww +#include "DiscIO/FileSystemGCWii.h" #include "DiscIO/Volume.h" namespace DiscIO @@ -219,11 +221,11 @@ bool DiscScrubber::ParsePartitionData(const Partition& partition, PartitionHeade MarkAsUsedE(partition_data_offset, header->fst_offset, header->fst_size); // Go through the filesystem and mark entries as used - for (const FileInfo& file : filesystem->GetFileList()) + for (const FileInfoGCWii& file : filesystem->GetFileList()) { DEBUG_LOG(DISCIO, "%s", file.m_FullPath.empty() ? "/" : file.m_FullPath.c_str()); if (!file.IsDirectory()) - MarkAsUsedE(partition_data_offset, file.m_Offset, file.m_FileSize); + MarkAsUsedE(partition_data_offset, file.GetOffset(), file.GetSize()); } return true; |
