Correctly handle non-default IWADS.

This commit is contained in:
yrriban 2025-04-16 23:01:12 -04:00
parent 3d010a2609
commit 833a0c681c

View file

@ -24,7 +24,7 @@ def DsdaPreamble(wad, mapstr):
iwadpath = pwadpath.joinpath("iwad")
if iwadpath.exists():
with io.open(iwadpath) as f:
iwad = f.read().strip() + ".WAD"
iwad = IWADS.joinpath(f.read().strip() + ".WAD")
args = args + ["-iwad", iwad]
wads = sorted(pwadpath.glob('*.wad', case_sensitive=False))