aedi: fix detection of lzdoom targets

This commit is contained in:
alexey.lysiuk 2021-04-10 14:37:34 +03:00
parent 539d67838f
commit 21f9274a90
1 changed files with 6 additions and 0 deletions

View File

@ -131,6 +131,9 @@ class LZDoomTarget(ZDoomVulkanBaseTarget):
def prepare_source(self, state: BuildState):
state.checkout_git('https://github.com/drfrag666/gzdoom.git')
def detect(self, state: BuildState) -> bool:
return super().detect(state) and not os.path.exists(state.source + 'libraries/zmusic')
class LZDoom3Target(ZDoomBaseTarget):
def __init__(self, name='lzdoom3'):
@ -140,6 +143,9 @@ class LZDoom3Target(ZDoomBaseTarget):
def prepare_source(self, state: BuildState):
state.checkout_git('https://github.com/drfrag666/gzdoom.git', branch='g3.3mgw')
def detect(self, state: BuildState) -> bool:
return os.path.exists(state.source + 'ico_lzdoom.png') and os.path.exists(state.source + 'libraries/zmusic')
def initialize(self, state: BuildState):
super().initialize(state)