DiscScrubber: Use FileInfo::IsDirectory instead of bit magic

This commit is contained in:
JosJuice 2015-07-20 21:21:24 +02:00
parent 67dbbc67c0
commit 95bc57cff3
1 changed files with 1 additions and 1 deletions

View File

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