Add a configure command for initial wad setup. Reshuffle a couple things that depend on it.
This commit is contained in:
parent
673e649e87
commit
5881c94c11
4 changed files with 34 additions and 10 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue