DiscIO: Fix recursive directory extraction

https://bugs.dolphin-emu.org/issues/12331
This commit is contained in:
JosJuice
2020-12-03 20:59:45 +01:00
parent 5abae61a8c
commit b43f7c85cc
4 changed files with 13 additions and 3 deletions

View File

@ -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;