2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

Address review comments

This commit is contained in:
VolcaEM 2020-06-02 17:54:10 +02:00 committed by GitHub
parent a087b3365a
commit dfd1badc12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -59,7 +59,7 @@ struct NRRHeader {
u64_le application_id; u64_le application_id;
u32_le size; u32_le size;
u8 nrr_kind; // 7.0.0+ u8 nrr_kind; // 7.0.0+
std::array<u8, 0x3> reserved_2; std::array<u8, 3> reserved_2;
u32_le hash_offset; u32_le hash_offset;
u32_le hash_count; u32_le hash_count;
u64_le reserved_3; u64_le reserved_3;
@ -89,15 +89,15 @@ struct NROHeader {
u32_le version; u32_le version;
u32_le nro_size; u32_le nro_size;
u32_le flags; u32_le flags;
// .text, .ro, .data (yuzu previously called it "rw" instead of "data") // .text, .ro, .data
std::array<SegmentHeader, 0x3> segment_headers; std::array<SegmentHeader, 3> segment_headers;
u32_le bss_size; u32_le bss_size;
u32_le reserved; u32_le reserved;
std::array<u8, 0x20> build_id; std::array<u8, 0x20> build_id;
u32_le dso_handle_offset; u32_le dso_handle_offset;
u32_le unused_2; u32_le unused_2;
// .apiInfo, .dynstr, .dynsym // .apiInfo, .dynstr, .dynsym
std::array<SegmentHeader, 0x3> segment_headers_2; std::array<SegmentHeader, 3> segment_headers_2;
}; };
static_assert(sizeof(NROHeader) == 0x80, "NROHeader has invalid size."); static_assert(sizeof(NROHeader) == 0x80, "NROHeader has invalid size.");