summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGravatar Lioncash2018-12-05 00:16:47 -0500
committerGravatar Lioncash2018-12-05 00:16:49 -0500
commit05a6f1f676386074ce28c2459b689d92c08a3171 (patch)
tree6fab331e8df1e77cc6465b4a5f3c1f1aa7d32b55 /src/core
parentservice/ldr: Corrent padding within the NRR header layout (diff)
downloadyuzu-05a6f1f676386074ce28c2459b689d92c08a3171.tar.gz
yuzu-05a6f1f676386074ce28c2459b689d92c08a3171.tar.xz
yuzu-05a6f1f676386074ce28c2459b689d92c08a3171.zip
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.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/service/ldr/ldr.cpp6
1 files changed, 3 insertions, 3 deletions
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:
414 using SHA256Hash = std::array<u8, 0x20>; 414 using SHA256Hash = std::array<u8, 0x20>;
415 415
416 struct NROHeader { 416 struct NROHeader {
417 u32_le entrypoint_insn; 417 INSERT_PADDING_WORDS(1);
418 u32_le mod_offset; 418 u32_le mod_offset;
419 INSERT_PADDING_WORDS(2); 419 INSERT_PADDING_WORDS(2);
420 u32_le magic; 420 u32_le magic;
421 INSERT_PADDING_WORDS(1); 421 u32_le version;
422 u32_le nro_size; 422 u32_le nro_size;
423 INSERT_PADDING_WORDS(1); 423 u32_le flags;
424 u32_le text_offset; 424 u32_le text_offset;
425 u32_le text_size; 425 u32_le text_size;
426 u32_le ro_offset; 426 u32_le ro_offset;