summaryrefslogtreecommitdiffstats
path: root/src/core/hle
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-12-08 04:26:31 +0100
committerGitHub <noreply@github.com>2018-12-08 04:26:31 +0100
commit3bddd5351e534b0a06ad9f2e6ab69b786381766c (patch)
treed08058cdfe177068c58b1b86c5da9e88161541ba /src/core/hle
parentMerge pull request #1874 from lioncash/bindings (diff)
parentservice/ldr: Amend layout of the NRO header (diff)
downloadyuzu-3bddd5351e534b0a06ad9f2e6ab69b786381766c.tar
yuzu-3bddd5351e534b0a06ad9f2e6ab69b786381766c.tar.gz
yuzu-3bddd5351e534b0a06ad9f2e6ab69b786381766c.tar.bz2
yuzu-3bddd5351e534b0a06ad9f2e6ab69b786381766c.tar.lz
yuzu-3bddd5351e534b0a06ad9f2e6ab69b786381766c.tar.xz
yuzu-3bddd5351e534b0a06ad9f2e6ab69b786381766c.tar.zst
yuzu-3bddd5351e534b0a06ad9f2e6ab69b786381766c.zip
Diffstat (limited to 'src/core/hle')
-rw-r--r--src/core/hle/service/ldr/ldr.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/core/hle/service/ldr/ldr.cpp b/src/core/hle/service/ldr/ldr.cpp
index 453d90a22..13bcefe07 100644
--- a/src/core/hle/service/ldr/ldr.cpp
+++ b/src/core/hle/service/ldr/ldr.cpp
@@ -408,13 +408,13 @@ private:
using SHA256Hash = std::array<u8, 0x20>;
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;
@@ -430,9 +430,10 @@ private:
struct NRRHeader {
u32_le magic;
- INSERT_PADDING_BYTES(0x1C);
+ INSERT_PADDING_BYTES(12);
u64_le title_id_mask;
u64_le title_id_pattern;
+ INSERT_PADDING_BYTES(16);
std::array<u8, 0x100> modulus;
std::array<u8, 0x100> signature_1;
std::array<u8, 0x100> signature_2;