diff options
author | Subv <subv2112@gmail.com> | 2018-06-20 18:39:10 +0200 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2018-06-20 18:39:10 +0200 |
commit | a3d82ef5d90b02a256087edf9c0124b51b059c18 (patch) | |
tree | 859f41acecbdcfcbdf19df80903a045d6e2b0bcb /src/core/file_sys/partition_filesystem.cpp | |
parent | Implement GetAvailableLanguageCodes2 (#575) (diff) | |
download | yuzu-a3d82ef5d90b02a256087edf9c0124b51b059c18.tar yuzu-a3d82ef5d90b02a256087edf9c0124b51b059c18.tar.gz yuzu-a3d82ef5d90b02a256087edf9c0124b51b059c18.tar.bz2 yuzu-a3d82ef5d90b02a256087edf9c0124b51b059c18.tar.lz yuzu-a3d82ef5d90b02a256087edf9c0124b51b059c18.tar.xz yuzu-a3d82ef5d90b02a256087edf9c0124b51b059c18.tar.zst yuzu-a3d82ef5d90b02a256087edf9c0124b51b059c18.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/file_sys/partition_filesystem.cpp | 6 |
1 files changed, 3 insertions, 3 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 { return pfs_header.num_entries; } -u64 PartitionFilesystem::GetEntryOffset(int index) const { +u64 PartitionFilesystem::GetEntryOffset(u32 index) const { if (index > GetNumEntries()) return 0; return content_offset + pfs_entries[index].fs_entry.offset; } -u64 PartitionFilesystem::GetEntrySize(int index) const { +u64 PartitionFilesystem::GetEntrySize(u32 index) const { if (index > GetNumEntries()) return 0; return pfs_entries[index].fs_entry.size; } -std::string PartitionFilesystem::GetEntryName(int index) const { +std::string PartitionFilesystem::GetEntryName(u32 index) const { if (index > GetNumEntries()) return ""; |