mirror of
https://github.com/NinjaCheetah/WiiPy.git
synced 2025-04-26 13:21:01 -04:00
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
dfb527388c | |||
46784f126e |
@ -106,14 +106,14 @@ def _print_ticket_info(ticket: libWiiPy.title.Ticket, signing_cert=None):
|
|||||||
print(f"Ticket Info")
|
print(f"Ticket Info")
|
||||||
ascii_tid = ""
|
ascii_tid = ""
|
||||||
try:
|
try:
|
||||||
ascii_tid = str(bytes.fromhex(ticket.title_id.decode()[8:].replace("00", "30")).decode("ascii"))
|
ascii_tid = str(bytes.fromhex(binascii.hexlify(ticket.title_id).decode()[8:].replace("00", "30")).decode("ascii"))
|
||||||
except UnicodeDecodeError or binascii.Error:
|
except UnicodeDecodeError or binascii.Error:
|
||||||
pass
|
pass
|
||||||
pattern = r"^[a-z0-9!@#$%^&*]{4}$"
|
pattern = r"^[a-z0-9!@#$%^&*]{4}$"
|
||||||
if re.fullmatch(pattern, ascii_tid, re.IGNORECASE):
|
if re.fullmatch(pattern, ascii_tid, re.IGNORECASE):
|
||||||
print(f" Title ID: {ticket.title_id.decode().upper()} ({ascii_tid})")
|
print(f" Title ID: {binascii.hexlify(ticket.title_id).decode().upper()} ({ascii_tid})")
|
||||||
else:
|
else:
|
||||||
print(f" Title ID: {ticket.title_id.decode().upper()}")
|
print(f" Title ID: {binascii.hexlify(ticket.title_id).decode().upper()}")
|
||||||
# This type of version number really only applies to the System Menu and IOS.
|
# This type of version number really only applies to the System Menu and IOS.
|
||||||
if ticket.title_id.decode().startswith("00000001"):
|
if ticket.title_id.decode().startswith("00000001"):
|
||||||
if ticket.title_id.decode() == "0000000100000001":
|
if ticket.title_id.decode() == "0000000100000001":
|
||||||
|
2
wiipy.py
2
wiipy.py
@ -18,7 +18,7 @@ from commands.title.nus import *
|
|||||||
from commands.title.tmd import *
|
from commands.title.tmd import *
|
||||||
from commands.title.wad import *
|
from commands.title.wad import *
|
||||||
|
|
||||||
wiipy_ver = "1.5.0"
|
wiipy_ver = "1.5.1"
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
# Main argument parser.
|
# Main argument parser.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user