From 95bc57cff3f81f98b172d20a20b503a332fa2603 Mon Sep 17 00:00:00 2001 From: JosJuice Date: Mon, 20 Jul 2015 21:21:24 +0200 Subject: [PATCH] DiscScrubber: Use FileInfo::IsDirectory instead of bit magic --- Source/Core/DiscIO/DiscScrubber.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/DiscIO/DiscScrubber.cpp b/Source/Core/DiscIO/DiscScrubber.cpp index fff2db9ab6..6b56d8b607 100644 --- a/Source/Core/DiscIO/DiscScrubber.cpp +++ b/Source/Core/DiscIO/DiscScrubber.cpp @@ -222,7 +222,7 @@ bool DiscScrubber::ParsePartitionData(const Partition& partition, PartitionHeade for (const FileInfo& file : filesystem->GetFileList()) { DEBUG_LOG(DISCIO, "%s", file.m_FullPath.empty() ? "/" : file.m_FullPath.c_str()); - if ((file.m_NameOffset & 0x1000000) == 0) + if (!file.IsDirectory()) MarkAsUsedE(partition_data_offset, file.m_Offset, file.m_FileSize); }