DS(i): Set unit code to 02

This commit is contained in:
RocketRobz 2024-12-25 20:54:45 -07:00
parent cbf5230238
commit 22152fd8c1

View File

@ -154,10 +154,7 @@ if args.arm7 is not None:
arm7File.close() arm7File.close()
filer = open(fname, 'rb') filer = open(fname, 'rb')
data = filer.read(0xB0) data = filer.read(0x180)
data += b'DoNotZeroFillMem'
filer.read(0x10)
data = data + filer.read(0xC0)
caddr = 0x180 caddr = 0x180
# DS Data 180 bytes # 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: if "dsi" in args.mode:
srlHeaderPatched = srlHeader._replace( srlHeaderPatched = srlHeader._replace(
dsiflags= b'\x01\x00', # disable modcrypt but enable twl dsiflags= b'\x01\x00', # disable modcrypt but enable twl
unitCode= b'\x03', unitCode= b'\x02',
) )
data1 = pack(srlHeaderFormat, *srlHeaderPatched._asdict().values()) data1 = pack(srlHeaderFormat, *srlHeaderPatched._asdict().values())