From 05a6f1f676386074ce28c2459b689d92c08a3171 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 5 Dec 2018 00:16:47 -0500 Subject: service/ldr: Amend layout of the NRO header The first word is just a padding byte, it's not an actual entry instruction. Also renames the rest of the entries according to SwitchBrew. --- src/core/hle/service/ldr/ldr.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/core/hle/service/ldr/ldr.cpp b/src/core/hle/service/ldr/ldr.cpp index 2f6613476..a81699a5a 100644 --- a/src/core/hle/service/ldr/ldr.cpp +++ b/src/core/hle/service/ldr/ldr.cpp @@ -414,13 +414,13 @@ private: using SHA256Hash = std::array; struct NROHeader { - u32_le entrypoint_insn; + INSERT_PADDING_WORDS(1); u32_le mod_offset; INSERT_PADDING_WORDS(2); u32_le magic; - INSERT_PADDING_WORDS(1); + u32_le version; u32_le nro_size; - INSERT_PADDING_WORDS(1); + u32_le flags; u32_le text_offset; u32_le text_size; u32_le ro_offset; -- cgit v1.2.3