Disable TMD/Ticket TID match check

This commit is contained in:
Campbell 2024-11-21 16:22:12 -05:00
parent 855200bb98
commit 57b2ed63d4
Signed by: NinjaCheetah
GPG Key ID: 670C282B3291D63D
2 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,7 @@
# "title/__init__.py" from libWiiPy by NinjaCheetah & Contributors # "title/__init__.py" from libWiiPy by NinjaCheetah & Contributors
# https://github.com/NinjaCheetah/libWiiPy # https://github.com/NinjaCheetah/libWiiPy
from .banner import *
from .content import * from .content import *
from .crypto import * from .crypto import *
from .iospatcher import * from .iospatcher import *

View File

@ -58,9 +58,9 @@ class Title:
self.content.load(self.wad.get_content_data(), self.tmd.content_records) self.content.load(self.wad.get_content_data(), self.tmd.content_records)
# Ensure that the Title IDs of the TMD and Ticket match before doing anything else. If they don't, throw an # Ensure that the Title IDs of the TMD and Ticket match before doing anything else. If they don't, throw an
# error because clearly something strange has gone on with the WAD and editing it probably won't work. # error because clearly something strange has gone on with the WAD and editing it probably won't work.
if self.tmd.title_id != str(self.ticket.title_id.decode()): #if self.tmd.title_id != str(self.ticket.title_id.decode()):
raise ValueError("The Title IDs of the TMD and Ticket in this WAD do not match. This WAD appears to be " # raise ValueError("The Title IDs of the TMD and Ticket in this WAD do not match. This WAD appears to be "
"invalid.") # "invalid.")
def dump_wad(self) -> bytes: def dump_wad(self) -> bytes:
""" """