mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-02 06:08:50 +00:00
Qt/FilesystemWidget: Add size column
This commit is contained in:
parent
f09f83c309
commit
f6865117e4
3 changed files with 36 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue