removed redundant decryption

This commit is contained in:
shijimasoft 2024-06-01 09:33:40 +02:00
parent 92dd95721d
commit c6e1b64efb

View File

@ -352,8 +352,6 @@ def parseNCCH(fh, fsize, offs=0, idx=0, titleId='', standAlone=1, fromNcsd=0):
base += '.%s.ncch' % (idx if fromNcsd == 0 else ncsdPartitions[idx])
base = os.path.join(os.path.dirname(os.path.realpath(sys.argv[0])), base)
with open(base, 'wb') as (f):
fh.seek(offs)
tmp = fh.read(512)
tmp = tmp[:399] + chr(ord(tmp[399]) & 2 | 4) + tmp[400:]
f.write(tmp)
if header.exhdrSize != 0: