diff options
author | bunnei <bunneidev@gmail.com> | 2018-10-26 06:15:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-26 06:15:34 +0200 |
commit | 72e6b31a070bcefc9d03bf75d14bd0808ea403f5 (patch) | |
tree | f6a5d3445687d18bdf5965ae6ed2ea5b81f25cfd /src/core/file_sys/partition_filesystem.cpp | |
parent | Merge pull request #1591 from bunnei/depth-range (diff) | |
parent | vfs: Remove InterpretAsDirectory and related functions (diff) | |
download | yuzu-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.cpp | 16 |
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 |