From 57b2ed63d4f226fbe330cc0268a6bd8ddd4a79c8 Mon Sep 17 00:00:00 2001 From: NinjaCheetah <58050615+NinjaCheetah@users.noreply.github.com> Date: Thu, 21 Nov 2024 16:22:12 -0500 Subject: [PATCH] Disable TMD/Ticket TID match check --- src/libWiiPy/title/__init__.py | 1 + src/libWiiPy/title/title.py | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/libWiiPy/title/__init__.py b/src/libWiiPy/title/__init__.py index 85c6b18..1c4c952 100644 --- a/src/libWiiPy/title/__init__.py +++ b/src/libWiiPy/title/__init__.py @@ -1,6 +1,7 @@ # "title/__init__.py" from libWiiPy by NinjaCheetah & Contributors # https://github.com/NinjaCheetah/libWiiPy +from .banner import * from .content import * from .crypto import * from .iospatcher import * diff --git a/src/libWiiPy/title/title.py b/src/libWiiPy/title/title.py index a3c080d..1db4680 100644 --- a/src/libWiiPy/title/title.py +++ b/src/libWiiPy/title/title.py @@ -58,9 +58,9 @@ class Title: 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 # 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()): - raise ValueError("The Title IDs of the TMD and Ticket in this WAD do not match. This WAD appears to be " - "invalid.") + #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 " + # "invalid.") def dump_wad(self) -> bytes: """