From b43f7c85cc8a5553382b048c83ff83f50fb34c8b Mon Sep 17 00:00:00 2001 From: JosJuice Date: Thu, 3 Dec 2020 20:59:45 +0100 Subject: DiscIO: Fix recursive directory extraction https://bugs.dolphin-emu.org/issues/12331 --- Source/Core/DiscIO/FileSystemGCWii.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Source/Core/DiscIO/FileSystemGCWii.cpp') 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(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; -- cgit v1.2.3