Add a configure command for initial wad setup. Reshuffle a couple things that depend on it.

This commit is contained in:
yrriban 2025-07-03 18:18:19 -04:00
parent 673e649e87
commit 5881c94c11
4 changed files with 34 additions and 10 deletions

View file

@ -57,11 +57,3 @@ class Base(Command):
@property
def dsda(self):
return self._doom.joinpath(self._dsda)
def iwad_path(self, wad):
iwad = self.iwads.joinpath(self._config.get("default_iwad"))
iwadpath = self.pwads.joinpath(wad).joinpath("iwad")
if iwadpath.exists():
with io.open(iwadpath) as f:
iwad = self.iwads.joinpath(f.read().strip() + ".WAD")
return iwad