1
0
Fork 0
forked from suyu/suyu

nso: Replace NSOHeader padding bytes with build ID

This commit is contained in:
Zach Hilman 2018-09-29 22:12:53 -04:00
parent bd14f397ce
commit 3c9e70fefa

View file

@ -36,8 +36,7 @@ struct NsoHeader {
INSERT_PADDING_WORDS(1); INSERT_PADDING_WORDS(1);
u8 flags; u8 flags;
std::array<NsoSegmentHeader, 3> segments; // Text, RoData, Data (in that order) std::array<NsoSegmentHeader, 3> segments; // Text, RoData, Data (in that order)
u32_le bss_size; std::array<u8, 0x20> build_id;
INSERT_PADDING_BYTES(0x1c);
std::array<u32_le, 3> segments_compressed_size; std::array<u32_le, 3> segments_compressed_size;
bool IsSegmentCompressed(size_t segment_num) const { bool IsSegmentCompressed(size_t segment_num) const {