diff options
| author | 2018-06-20 11:39:10 -0500 | |
|---|---|---|
| committer | 2018-06-20 11:39:10 -0500 | |
| commit | a3d82ef5d90b02a256087edf9c0124b51b059c18 (patch) | |
| tree | 859f41acecbdcfcbdf19df80903a045d6e2b0bcb /src/core/file_sys | |
| parent | Implement GetAvailableLanguageCodes2 (#575) (diff) | |
| download | yuzu-a3d82ef5d90b02a256087edf9c0124b51b059c18.tar.gz yuzu-a3d82ef5d90b02a256087edf9c0124b51b059c18.tar.xz yuzu-a3d82ef5d90b02a256087edf9c0124b51b059c18.zip | |
Build: Fixed some MSVC warnings in various parts of the code.
Diffstat (limited to 'src/core/file_sys')
| -rw-r--r-- | src/core/file_sys/partition_filesystem.cpp | 6 | ||||
| -rw-r--r-- | src/core/file_sys/partition_filesystem.h | 6 |
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 | ||
| 76 | u64 PartitionFilesystem::GetEntryOffset(int index) const { | 76 | u64 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 | ||
| 83 | u64 PartitionFilesystem::GetEntrySize(int index) const { | 83 | u64 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 | ||
| 90 | std::string PartitionFilesystem::GetEntryName(int index) const { | 90 | std::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 | ||