summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys/partition_filesystem.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-10-26 06:15:34 +0200
committerGitHub <noreply@github.com>2018-10-26 06:15:34 +0200
commit72e6b31a070bcefc9d03bf75d14bd0808ea403f5 (patch)
treef6a5d3445687d18bdf5965ae6ed2ea5b81f25cfd /src/core/file_sys/partition_filesystem.cpp
parentMerge pull request #1591 from bunnei/depth-range (diff)
parentvfs: Remove InterpretAsDirectory and related functions (diff)
downloadyuzu-72e6b31a070bcefc9d03bf75d14bd0808ea403f5.tar
yuzu-72e6b31a070bcefc9d03bf75d14bd0808ea403f5.tar.gz
yuzu-72e6b31a070bcefc9d03bf75d14bd0808ea403f5.tar.bz2
yuzu-72e6b31a070bcefc9d03bf75d14bd0808ea403f5.tar.lz
yuzu-72e6b31a070bcefc9d03bf75d14bd0808ea403f5.tar.xz
yuzu-72e6b31a070bcefc9d03bf75d14bd0808ea403f5.tar.zst
yuzu-72e6b31a070bcefc9d03bf75d14bd0808ea403f5.zip
Diffstat (limited to 'src/core/file_sys/partition_filesystem.cpp')
-rw-r--r--src/core/file_sys/partition_filesystem.cpp16
1 files changed, 1 insertions, 15 deletions
diff --git a/src/core/file_sys/partition_filesystem.cpp b/src/core/file_sys/partition_filesystem.cpp
index 5791c76ff..a5259a593 100644
--- a/src/core/file_sys/partition_filesystem.cpp
+++ b/src/core/file_sys/partition_filesystem.cpp
@@ -83,7 +83,7 @@ std::vector<std::shared_ptr<VfsFile>> PartitionFilesystem::GetFiles() const {
}
std::vector<std::shared_ptr<VfsDirectory>> PartitionFilesystem::GetSubdirectories() const {
- return pfs_dirs;
+ return {};
}
std::string PartitionFilesystem::GetName() const {
@@ -103,18 +103,4 @@ void PartitionFilesystem::PrintDebugInfo() const {
pfs_files[i]->GetName(), pfs_files[i]->GetSize());
}
}
-
-bool PartitionFilesystem::ReplaceFileWithSubdirectory(VirtualFile file, VirtualDir dir) {
- const auto iter = std::find(pfs_files.begin(), pfs_files.end(), file);
- if (iter == pfs_files.end())
- return false;
-
- const std::ptrdiff_t offset = std::distance(pfs_files.begin(), iter);
- pfs_files[offset] = std::move(pfs_files.back());
- pfs_files.pop_back();
-
- pfs_dirs.emplace_back(std::move(dir));
-
- return true;
-}
} // namespace FileSys