From 96bb588cd5c5d0462b46459c91ae285ffb12edb3 Mon Sep 17 00:00:00 2001 From: Spencer Brown Date: Wed, 30 Oct 2024 16:41:23 +1000 Subject: [PATCH] Skip over this key here. --- src/srctools/game.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/srctools/game.py b/src/srctools/game.py index 707d0ed7..5ce08b77 100644 --- a/src/srctools/game.py +++ b/src/srctools/game.py @@ -90,7 +90,7 @@ def __init__(self, path: Union[str, Path], encoding: str = 'utf8') -> None: if path.exists(): self.search_paths.insert(0, path) - mounts_path = self.path / MOUNTSKV # Process mounts.kv file if exists + mounts_path = self.path / MOUNTSKV # Process mounts.kv file if exists if mounts_path.is_file(): with open(mounts_path, encoding=encoding) as m: mountskv = Keyvalues.parse(m) @@ -145,7 +145,7 @@ def vpk_patch(p: Path) -> Path: continue for child in mount: - if child.name in ("head", "required"): + if child.name in ("head", "required", "mountmoddir"): continue # Ignore # Else we're working with a mod folder