mirror of
https://github.com/NinjaCheetah/libWiiPy.git
synced 2025-04-26 13:21:01 -04:00
Add support for boot2 WADs
This is the hard work they pay me for.
This commit is contained in:
parent
b3b10f9315
commit
17a894dc0d
@ -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.
|
||||
# ====================================================================================
|
||||
|
Loading…
x
Reference in New Issue
Block a user