From 3d4d3dc99e44ba8b75a19cc35954701f88c530f0 Mon Sep 17 00:00:00 2001 From: NinjaCheetah <58050615+NinjaCheetah@users.noreply.github.com> Date: Thu, 12 Dec 2024 17:32:44 -0500 Subject: [PATCH] Use .lower() since title paths are lowercase --- src/libWiiPy/nand/emunand.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libWiiPy/nand/emunand.py b/src/libWiiPy/nand/emunand.py index 3af60ec..77413d5 100644 --- a/src/libWiiPy/nand/emunand.py +++ b/src/libWiiPy/nand/emunand.py @@ -221,8 +221,8 @@ class EmuNAND: # Validate the TID, then build a path to the TMD file to verify that it exists. if len(tid) != 16: raise ValueError(f"Title ID \"{tid}\" is not a valid!") - tid_high = tid[:8] - tid_low = tid[8:] + tid_high = tid[:8].lower() + tid_low = tid[8:].lower() tmd_path = self.title_dir.joinpath(tid_high, tid_low, "content", "title.tmd") if not tmd_path.exists(): raise FileNotFoundError(f"Title with Title ID {tid} does not appear to be installed!") @@ -248,8 +248,8 @@ class EmuNAND: # Validate the TID, then build a path to the Ticket files to verify that it exists. if len(tid) != 16: raise ValueError(f"Title ID \"{tid}\" is not a valid!") - tid_high = tid[:8] - tid_low = tid[8:] + tid_high = tid[:8].lower() + tid_low = tid[8:].lower() ticket_path = self.ticket_dir.joinpath(tid_high, f"{tid_low}.tik") if not ticket_path.exists(): raise FileNotFoundError(f"No Ticket exists for the title with Title ID {tid}!")