mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-03 06:39:57 +00:00
nso: Remove unused function ReadSegment()
This commit is contained in:
parent
d3cfaf95c8
commit
a25c5b982a
1 changed files with 0 additions and 13 deletions
|
@ -79,19 +79,6 @@ static std::vector<u8> DecompressSegment(const std::vector<u8>& compressed_data,
|
||||||
return uncompressed_data;
|
return uncompressed_data;
|
||||||
}
|
}
|
||||||
|
|
||||||
static std::vector<u8> ReadSegment(FileUtil::IOFile& file, const NsoSegmentHeader& header,
|
|
||||||
size_t compressed_size) {
|
|
||||||
std::vector<u8> compressed_data(compressed_size);
|
|
||||||
|
|
||||||
file.Seek(header.offset, SEEK_SET);
|
|
||||||
if (compressed_size != file.ReadBytes(compressed_data.data(), compressed_size)) {
|
|
||||||
LOG_CRITICAL(Loader, "Failed to read {} NSO LZ4 compressed bytes", compressed_size);
|
|
||||||
return {};
|
|
||||||
}
|
|
||||||
|
|
||||||
return DecompressSegment(compressed_data, header);
|
|
||||||
}
|
|
||||||
|
|
||||||
static constexpr u32 PageAlignSize(u32 size) {
|
static constexpr u32 PageAlignSize(u32 size) {
|
||||||
return (size + Memory::PAGE_MASK) & ~Memory::PAGE_MASK;
|
return (size + Memory::PAGE_MASK) & ~Memory::PAGE_MASK;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue