Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
seiya-git committed Oct 15, 2023
1 parent fd8fa26 commit c8c5837
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion py-test/lib/FsTools.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def get_data_from_cnmt(nca):

data['keygeneration'] = keygeneration

cryptoHex = (keygeneration - 1).to_bytes(8, 'big').hex().upper()
cryptoHex = keygeneration.to_bytes(8, 'big').hex().upper()
data['rightsId'] = data['title_id'] + cryptoHex

data['hasHtmlManual'] = hasHtmlManual=False
Expand Down
4 changes: 3 additions & 1 deletion py-test/lib/Verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,10 +348,12 @@ def decrypt_verify(nspx):
print(tvmsg)
verdict = False

if len(titlerights) < 1:
tvmsg = ''

file_ext = nspx._path[-3:].upper()
if verdict == True:
tvmsg = f'\nVERDICT: {file_ext} FILE IS CORRECT\n'

else:
tvmsg = f'\nVERDICT: {file_ext} FILE IS CORRUPT OR MISSES FILES\n'
vmsg += tvmsg
Expand Down

0 comments on commit c8c5837

Please sign in to comment.