diff options
| author | 2018-07-19 20:49:27 -0400 | |
|---|---|---|
| committer | 2018-07-19 20:49:27 -0400 | |
| commit | a25c5b982a4406851ee1de18f09061a30d078b5b (patch) | |
| tree | 98dc8483291bfbd6300ed7b62a5fc3095c34a362 /src/core/loader/nso.cpp | |
| parent | Merge pull request #726 from lioncash/overload (diff) | |
| download | yuzu-a25c5b982a4406851ee1de18f09061a30d078b5b.tar.gz yuzu-a25c5b982a4406851ee1de18f09061a30d078b5b.tar.xz yuzu-a25c5b982a4406851ee1de18f09061a30d078b5b.zip | |
nso: Remove unused function ReadSegment()
Diffstat (limited to 'src/core/loader/nso.cpp')
| -rw-r--r-- | src/core/loader/nso.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/core/loader/nso.cpp b/src/core/loader/nso.cpp index c66561bf4..b25810e07 100644 --- a/src/core/loader/nso.cpp +++ b/src/core/loader/nso.cpp | |||
| @@ -79,19 +79,6 @@ static std::vector<u8> DecompressSegment(const std::vector<u8>& compressed_data, | |||
| 79 | return uncompressed_data; | 79 | return uncompressed_data; |
| 80 | } | 80 | } |
| 81 | 81 | ||
| 82 | static std::vector<u8> ReadSegment(FileUtil::IOFile& file, const NsoSegmentHeader& header, | ||
| 83 | size_t compressed_size) { | ||
| 84 | std::vector<u8> compressed_data(compressed_size); | ||
| 85 | |||
| 86 | file.Seek(header.offset, SEEK_SET); | ||
| 87 | if (compressed_size != file.ReadBytes(compressed_data.data(), compressed_size)) { | ||
| 88 | LOG_CRITICAL(Loader, "Failed to read {} NSO LZ4 compressed bytes", compressed_size); | ||
| 89 | return {}; | ||
| 90 | } | ||
| 91 | |||
| 92 | return DecompressSegment(compressed_data, header); | ||
| 93 | } | ||
| 94 | |||
| 95 | static constexpr u32 PageAlignSize(u32 size) { | 82 | static constexpr u32 PageAlignSize(u32 size) { |
| 96 | return (size + Memory::PAGE_MASK) & ~Memory::PAGE_MASK; | 83 | return (size + Memory::PAGE_MASK) & ~Memory::PAGE_MASK; |
| 97 | } | 84 | } |