Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
seiya-git committed Oct 14, 2023
1 parent ad04cfb commit fea139f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions py-test/verif.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from lib import VerifyTools

def parse_name(file):
res = re.search(r'(?P<title_id>\[[A-F0-9]{16}\])( )?(?P<version>\[v\d+\])(.*)?(?P<type>\[(BASE|UPD(ATE)?|DLC( \d+)?)\])?(.*)?\.(xci|xcz|nsp|nsz)$', file, re.I)
res = re.search(r'(?P<title_id>\[0100[A-F0-9]{12}\])\s?(?P<version>\[v\d+\]).*?(?P<type>\[(BASE|UPD(ATE)?|DLC( \d+)?)\])?.*?\.(xci|xcz|nsp|nsz)$', file, re.I)

if res is None:
return None
Expand All @@ -17,6 +17,9 @@ def parse_name(file):
version = int(res.group('version')[2:-1])
title_type = None

if title_id[:-4] == '010000000000':
return None

if version % 65536 != 0:
return None

Expand Down Expand Up @@ -211,7 +214,7 @@ def decrypt_verify(nspx):
vmsg += tvmsg
print(tvmsg)
elif file.endswith('.tik') and correct == 'ncz':
tvmsg = f'> {file}\t -> is EXISTS'
tvmsg = f'> {file}\t\t -> is EXISTS'
vmsg += tvmsg
print(tvmsg)
else:
Expand Down

0 comments on commit fea139f

Please sign in to comment.