From 17a894dc0d238ea7ed041c64a67a28bc72c00304 Mon Sep 17 00:00:00 2001 From: rmc Date: Wed, 3 Apr 2024 23:22:23 -0400 Subject: [PATCH] Add support for boot2 WADs This is the hard work they pay me for. --- src/libWiiPy/wad.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/libWiiPy/wad.py b/src/libWiiPy/wad.py index cd8423b..a0b8d65 100644 --- a/src/libWiiPy/wad.py +++ b/src/libWiiPy/wad.py @@ -66,9 +66,8 @@ class WAD: wad_magic_bin = wad_data.read(8) wad_magic_hex = binascii.hexlify(wad_magic_bin) wad_magic = str(wad_magic_hex.decode()) - if wad_magic != "0000002049730000": - raise TypeError("This does not appear to be a valid WAD file, or is a boot2 WAD, which is not currently" - " supported by this library.") + if wad_magic != "0000002049730000" and wad_magic != "0000002069620000": + raise TypeError("This does not appear to be a valid WAD file.") # ==================================================================================== # Get the sizes of each data region contained within the WAD. # ====================================================================================