summaryrefslogtreecommitdiff
path: root/src/core/file_sys
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/file_sys')
-rw-r--r--src/core/file_sys/partition_filesystem.cpp6
-rw-r--r--src/core/file_sys/partition_filesystem.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/src/core/file_sys/partition_filesystem.cpp b/src/core/file_sys/partition_filesystem.cpp
index 808254ecc..86a01a5eb 100644
--- a/src/core/file_sys/partition_filesystem.cpp
+++ b/src/core/file_sys/partition_filesystem.cpp
@@ -73,21 +73,21 @@ u32 PartitionFilesystem::GetNumEntries() const {
73 return pfs_header.num_entries; 73 return pfs_header.num_entries;
74} 74}
75 75
76u64 PartitionFilesystem::GetEntryOffset(int index) const { 76u64 PartitionFilesystem::GetEntryOffset(u32 index) const {
77 if (index > GetNumEntries()) 77 if (index > GetNumEntries())
78 return 0; 78 return 0;
79 79
80 return content_offset + pfs_entries[index].fs_entry.offset; 80 return content_offset + pfs_entries[index].fs_entry.offset;
81} 81}
82 82
83u64 PartitionFilesystem::GetEntrySize(int index) const { 83u64 PartitionFilesystem::GetEntrySize(u32 index) const {
84 if (index > GetNumEntries()) 84 if (index > GetNumEntries())
85 return 0; 85 return 0;
86 86
87 return pfs_entries[index].fs_entry.size; 87 return pfs_entries[index].fs_entry.size;
88} 88}
89 89
90std::string PartitionFilesystem::GetEntryName(int index) const { 90std::string PartitionFilesystem::GetEntryName(u32 index) const {
91 if (index > GetNumEntries()) 91 if (index > GetNumEntries())
92 return ""; 92 return "";
93 93
diff --git a/src/core/file_sys/partition_filesystem.h b/src/core/file_sys/partition_filesystem.h
index 573c90057..65cf572f4 100644
--- a/src/core/file_sys/partition_filesystem.h
+++ b/src/core/file_sys/partition_filesystem.h
@@ -27,9 +27,9 @@ public:
27 Loader::ResultStatus Load(const std::vector<u8>& file_data, size_t offset = 0); 27 Loader::ResultStatus Load(const std::vector<u8>& file_data, size_t offset = 0);
28 28
29 u32 GetNumEntries() const; 29 u32 GetNumEntries() const;
30 u64 GetEntryOffset(int index) const; 30 u64 GetEntryOffset(u32 index) const;
31 u64 GetEntrySize(int index) const; 31 u64 GetEntrySize(u32 index) const;
32 std::string GetEntryName(int index) const; 32 std::string GetEntryName(u32 index) const;
33 u64 GetFileOffset(const std::string& name) const; 33 u64 GetFileOffset(const std::string& name) const;
34 u64 GetFileSize(const std::string& name) const; 34 u64 GetFileSize(const std::string& name) const;
35 35