mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Qt/FilesystemWidget: Add size column
This commit is contained in:
@ -8,6 +8,19 @@ namespace DiscIO
|
||||
{
|
||||
FileInfo::~FileInfo() = default;
|
||||
|
||||
u64 FileInfo::GetTotalSize() const
|
||||
{
|
||||
if (!IsDirectory())
|
||||
return GetSize();
|
||||
|
||||
u64 size = 0;
|
||||
|
||||
for (const auto& entry : *this)
|
||||
size += entry.GetTotalSize();
|
||||
|
||||
return size;
|
||||
}
|
||||
|
||||
FileSystem::~FileSystem() = default;
|
||||
|
||||
} // namespace
|
||||
} // namespace DiscIO
|
||||
|
Reference in New Issue
Block a user