diff options
author | bunnei <bunneidev@gmail.com> | 2020-12-12 10:54:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-12 10:54:28 +0100 |
commit | 69b46dd607e92e50b2f83e35bb7301bb9f41d460 (patch) | |
tree | 34c48167b9b422315021a0be86db7ae76cc835fa /src/core/file_sys/content_archive.cpp | |
parent | Merge pull request #5187 from Morph1984/revert-stdfs (diff) | |
parent | vfs: Use existing type aliases consistently (diff) | |
download | yuzu-69b46dd607e92e50b2f83e35bb7301bb9f41d460.tar yuzu-69b46dd607e92e50b2f83e35bb7301bb9f41d460.tar.gz yuzu-69b46dd607e92e50b2f83e35bb7301bb9f41d460.tar.bz2 yuzu-69b46dd607e92e50b2f83e35bb7301bb9f41d460.tar.lz yuzu-69b46dd607e92e50b2f83e35bb7301bb9f41d460.tar.xz yuzu-69b46dd607e92e50b2f83e35bb7301bb9f41d460.tar.zst yuzu-69b46dd607e92e50b2f83e35bb7301bb9f41d460.zip |
Diffstat (limited to 'src/core/file_sys/content_archive.cpp')
-rw-r--r-- | src/core/file_sys/content_archive.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/core/file_sys/content_archive.cpp b/src/core/file_sys/content_archive.cpp index 363ff980f..a6c0337fa 100644 --- a/src/core/file_sys/content_archive.cpp +++ b/src/core/file_sys/content_archive.cpp @@ -519,15 +519,17 @@ Loader::ResultStatus NCA::GetStatus() const { return status; } -std::vector<std::shared_ptr<VfsFile>> NCA::GetFiles() const { - if (status != Loader::ResultStatus::Success) +std::vector<VirtualFile> NCA::GetFiles() const { + if (status != Loader::ResultStatus::Success) { return {}; + } return files; } -std::vector<std::shared_ptr<VfsDirectory>> NCA::GetSubdirectories() const { - if (status != Loader::ResultStatus::Success) +std::vector<VirtualDir> NCA::GetSubdirectories() const { + if (status != Loader::ResultStatus::Success) { return {}; + } return dirs; } @@ -535,7 +537,7 @@ std::string NCA::GetName() const { return file->GetName(); } -std::shared_ptr<VfsDirectory> NCA::GetParentDirectory() const { +VirtualDir NCA::GetParentDirectory() const { return file->GetContainingDirectory(); } |