aboutsummaryrefslogtreecommitdiff
path: root/src/core/file_sys/partition_filesystem.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-10-14 10:29:10 -0400
committerGitHub <noreply@github.com>2019-10-14 10:29:10 -0400
commitcd2efed922740da5c2c4df63360faba009e696c1 (patch)
tree340266cd6e90446a051d023409ffe1ded832812b /src/core/file_sys/partition_filesystem.h
parentb41692b69b778ce553c03461e4c66d9a3f58175e (diff)
parente0b9ee9b941f3fb47a5b219d27c37081f379d05a (diff)
Merge pull request #2930 from DarkLordZach/gamecard-partitions
file_sys: Add code to access raw gamecard partitions and lazily load them
Diffstat (limited to 'src/core/file_sys/partition_filesystem.h')
-rw-r--r--src/core/file_sys/partition_filesystem.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/file_sys/partition_filesystem.h b/src/core/file_sys/partition_filesystem.h
index 248fdfdeb..279193b19 100644
--- a/src/core/file_sys/partition_filesystem.h
+++ b/src/core/file_sys/partition_filesystem.h
@@ -29,6 +29,9 @@ public:
Loader::ResultStatus GetStatus() const;
+ std::map<std::string, u64> GetFileOffsets() const;
+ std::map<std::string, u64> GetFileSizes() const;
+
std::vector<std::shared_ptr<VfsFile>> GetFiles() const override;
std::vector<std::shared_ptr<VfsDirectory>> GetSubdirectories() const override;
std::string GetName() const override;
@@ -80,6 +83,9 @@ private:
bool is_hfs = false;
std::size_t content_offset = 0;
+ std::map<std::string, u64> offsets;
+ std::map<std::string, u64> sizes;
+
std::vector<VirtualFile> pfs_files;
};