summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Lioncash2018-12-05 00:05:01 -0500
committerGravatar Lioncash2018-12-05 00:05:04 -0500
commit817fb18e302fc2ddbdfdd7b84c0ee200500ba54c (patch)
tree9b132213a65fd36fe85ac82a8db950665313b8e6 /src
parentMerge pull request #1704 from DarkLordZach/oss-sysarchive (diff)
downloadyuzu-817fb18e302fc2ddbdfdd7b84c0ee200500ba54c.tar.gz
yuzu-817fb18e302fc2ddbdfdd7b84c0ee200500ba54c.tar.xz
yuzu-817fb18e302fc2ddbdfdd7b84c0ee200500ba54c.zip
service/ldr: Corrent padding within the NRR header layout
The padding after the magic signature value should be 12 bytes rather than 28 bytes. The other 16 should be placed after the title ID pattern.
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/ldr/ldr.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hle/service/ldr/ldr.cpp b/src/core/hle/service/ldr/ldr.cpp
index ca119dd3a..2f6613476 100644
--- a/src/core/hle/service/ldr/ldr.cpp
+++ b/src/core/hle/service/ldr/ldr.cpp
@@ -436,9 +436,10 @@ private:
436 436
437 struct NRRHeader { 437 struct NRRHeader {
438 u32_le magic; 438 u32_le magic;
439 INSERT_PADDING_BYTES(0x1C); 439 INSERT_PADDING_BYTES(12);
440 u64_le title_id_mask; 440 u64_le title_id_mask;
441 u64_le title_id_pattern; 441 u64_le title_id_pattern;
442 INSERT_PADDING_BYTES(16);
442 std::array<u8, 0x100> modulus; 443 std::array<u8, 0x100> modulus;
443 std::array<u8, 0x100> signature_1; 444 std::array<u8, 0x100> signature_1;
444 std::array<u8, 0x100> signature_2; 445 std::array<u8, 0x100> signature_2;