Debian Codegraph @

Source/Core/DiscIO/Filesystem.cpp

raw symbols SCIP
1 // Copyright 2008 Dolphin Emulator Project
2 // SPDX-License-Identifier: GPL-2.0-or-later
3
4 #include "DiscIO/Filesystem.h"
5
6 namespace DiscIO
7 {
8 FileInfo::~FileInfo() = default;
9
10 u64 FileInfo::GetTotalSize() const
11 {
12 if (!IsDirectory())
13 return GetSize();
14
15 u64 size = 0;
16
17 for (const auto& entry : *this)
18 size += entry.GetTotalSize();
19
20 return size;
21 }
22
23 FileSystem::~FileSystem() = default;
24
25 } // namespace DiscIO