diff options
| author | LC <mathew1800@gmail.com> | 2020-12-03 15:31:00 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-03 15:31:00 -0500 |
| commit | a34823df61df65168aa40ef5e82e44defd4a0138 (patch) | |
| tree | 5e50fe70508eaf2054a59b093318644aaf70e87e /Source/Core/DiscIO/FileSystemGCWii.cpp | |
| parent | dbc0fd1d89a4d79228f37114b46df1ec3a4c20f0 (diff) | |
| parent | b43f7c85cc8a5553382b048c83ff83f50fb34c8b (diff) | |
Merge pull request #9306 from JosJuice/recursive-extract
DiscIO: Fix recursive directory extraction
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; |
