From 22152fd8c1e67955ffaec70a57a42bcfd3b88673 Mon Sep 17 00:00:00 2001 From: RocketRobz Date: Wed, 25 Dec 2024 20:54:45 -0700 Subject: [PATCH] DS(i): Set unit code to `02` --- nds/patch_ndsheader_dsiware.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/nds/patch_ndsheader_dsiware.py b/nds/patch_ndsheader_dsiware.py index 648fa0a..4a299c4 100644 --- a/nds/patch_ndsheader_dsiware.py +++ b/nds/patch_ndsheader_dsiware.py @@ -154,10 +154,7 @@ if args.arm7 is not None: arm7File.close() filer = open(fname, 'rb') -data = filer.read(0xB0) -data += b'DoNotZeroFillMem' -filer.read(0x10) -data = data + filer.read(0xC0) +data = filer.read(0x180) caddr = 0x180 # DS Data 180 bytes @@ -226,7 +223,7 @@ if srlHeader.arm7EntryAddress > 0x2400000 and not args.read and args.arm7 is Non if "dsi" in args.mode: srlHeaderPatched = srlHeader._replace( dsiflags= b'\x01\x00', # disable modcrypt but enable twl - unitCode= b'\x03', + unitCode= b'\x02', ) data1 = pack(srlHeaderFormat, *srlHeaderPatched._asdict().values())