mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
DiscScrubber: Don't take SFileInfo instances by value
Avoids unnecessary copies.
This commit is contained in:
@ -247,7 +247,7 @@ bool DiscScrubber::ParsePartitionData(Partition& partition)
|
|||||||
partition.header.fst_size);
|
partition.header.fst_size);
|
||||||
|
|
||||||
// Go through the filesystem and mark entries as used
|
// Go through the filesystem and mark entries as used
|
||||||
for (SFileInfo file : filesystem->GetFileList())
|
for (const SFileInfo& 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.m_NameOffset & 0x1000000) == 0)
|
||||||
|
Reference in New Issue
Block a user