Add support for boot2 WADs

This is the hard work they pay me for.
This commit is contained in:
rmc 2024-04-03 23:22:23 -04:00
parent b3b10f9315
commit 17a894dc0d
No known key found for this signature in database
GPG Key ID: 5633EC10309D77D1

View File

@ -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.
# ====================================================================================