DiscScrubber: Use FileInfo::IsDirectory instead of bit magic
This commit is contained in:
parent
67dbbc67c0
commit
95bc57cff3
|
@ -222,7 +222,7 @@ bool DiscScrubber::ParsePartitionData(const Partition& partition, PartitionHeade
|
||||||
for (const FileInfo& file : filesystem->GetFileList())
|
for (const FileInfo& file : filesystem->GetFileList())
|
||||||
{
|
{
|
||||||
DEBUG_LOG(DISCIO, "%s", file.m_FullPath.empty() ? "/" : file.m_FullPath.c_str());
|
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);
|
MarkAsUsedE(partition_data_offset, file.m_Offset, file.m_FileSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue