summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys/partition_filesystem.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-08-23 20:20:37 +0200
committerLioncash <mathew1800@gmail.com>2020-08-23 23:02:55 +0200
commit01d1b5cdaff6f05aa62794816547deab977256e5 (patch)
treef4212fd69ff589b9a5957e5f4215b0b5c8771db0 /src/core/file_sys/partition_filesystem.cpp
parentMerge pull request #4546 from lioncash/telemetry (diff)
downloadyuzu-01d1b5cdaff6f05aa62794816547deab977256e5.tar
yuzu-01d1b5cdaff6f05aa62794816547deab977256e5.tar.gz
yuzu-01d1b5cdaff6f05aa62794816547deab977256e5.tar.bz2
yuzu-01d1b5cdaff6f05aa62794816547deab977256e5.tar.lz
yuzu-01d1b5cdaff6f05aa62794816547deab977256e5.tar.xz
yuzu-01d1b5cdaff6f05aa62794816547deab977256e5.tar.zst
yuzu-01d1b5cdaff6f05aa62794816547deab977256e5.zip
Diffstat (limited to 'src/core/file_sys/partition_filesystem.cpp')
-rw-r--r--src/core/file_sys/partition_filesystem.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/file_sys/partition_filesystem.cpp b/src/core/file_sys/partition_filesystem.cpp
index 846986736..48a2ed4d4 100644
--- a/src/core/file_sys/partition_filesystem.cpp
+++ b/src/core/file_sys/partition_filesystem.cpp
@@ -21,7 +21,7 @@ bool PartitionFilesystem::Header::HasValidMagicValue() const {
magic == Common::MakeMagic('P', 'F', 'S', '0');
}
-PartitionFilesystem::PartitionFilesystem(std::shared_ptr<VfsFile> file) {
+PartitionFilesystem::PartitionFilesystem(VirtualFile file) {
// At least be as large as the header
if (file->GetSize() < sizeof(Header)) {
status = Loader::ResultStatus::ErrorBadPFSHeader;
@@ -89,11 +89,11 @@ std::map<std::string, u64> PartitionFilesystem::GetFileSizes() const {
return sizes;
}
-std::vector<std::shared_ptr<VfsFile>> PartitionFilesystem::GetFiles() const {
+std::vector<VirtualFile> PartitionFilesystem::GetFiles() const {
return pfs_files;
}
-std::vector<std::shared_ptr<VfsDirectory>> PartitionFilesystem::GetSubdirectories() const {
+std::vector<VirtualDir> PartitionFilesystem::GetSubdirectories() const {
return {};
}
@@ -101,7 +101,7 @@ std::string PartitionFilesystem::GetName() const {
return is_hfs ? "HFS0" : "PFS0";
}
-std::shared_ptr<VfsDirectory> PartitionFilesystem::GetParentDirectory() const {
+VirtualDir PartitionFilesystem::GetParentDirectory() const {
// TODO(DarkLordZach): Add support for nested containers.
return nullptr;
}