diff options
| author | JosJuice <josjuice@gmail.com> | 2020-12-03 20:59:45 +0100 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2020-12-03 21:13:53 +0100 |
| commit | b43f7c85cc8a5553382b048c83ff83f50fb34c8b (patch) | |
| tree | d44140d94e566b196df92d1309a270f0f4a8b5ea /Source/Core/DiscIO/FileSystemGCWii.cpp | |
| parent | 5abae61a8c7e0e4ac03bb8d3031793037e87fdd3 (diff) | |
DiscIO: Fix recursive directory extraction
https://bugs.dolphin-emu.org/issues/12331
Diffstat (limited to 'Source/Core/DiscIO/FileSystemGCWii.cpp')
| -rw-r--r-- | Source/Core/DiscIO/FileSystemGCWii.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/Core/DiscIO/FileSystemGCWii.cpp b/Source/Core/DiscIO/FileSystemGCWii.cpp index 541baf67ee..40b15d3715 100644 --- a/Source/Core/DiscIO/FileSystemGCWii.cpp +++ b/Source/Core/DiscIO/FileSystemGCWii.cpp @@ -96,6 +96,11 @@ u64 FileInfoGCWii::GetOffset() const return static_cast<u64>(Get(EntryProperty::FILE_OFFSET)) << m_offset_shift; } +bool FileInfoGCWii::IsRoot() const +{ + return m_index == 0; +} + bool FileInfoGCWii::IsDirectory() const { return (Get(EntryProperty::NAME_OFFSET) & 0xFF000000) != 0; |
