Skip to content

Commit 24e42e6

Browse files
committed
Produce a fatal error if propcombine is requested, but studioMDL is unavailable
1 parent 0ee8d2b commit 24e42e6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/hammeraddons/postcompiler.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,13 @@ async def main(argv: list[str]) -> None:
220220
studiomdl_path=studiomdl_path,
221221
)
222222

223-
if studiomdl_path is not None and args.propcombine:
223+
if args.propcombine:
224+
if studiomdl_path is None:
225+
# All builtin definitions should have a correct path, so this should be a user one.
226+
raise ValueError(
227+
'Cannot propcombine, no studioMDL path provided! '
228+
'Update hammeraddons_game.vdf.'
229+
)
224230
decomp_cache_path = conf.opts.get(config.PROPCOMBINE_CACHE)
225231
decomp_cache_loc: Path | None
226232
crowbar_loc: Path | None

0 commit comments

Comments
 (0)