diff --git a/dzgui/api/mods.py b/dzgui/api/mods.py index 3305171..b24271a 100644 --- a/dzgui/api/mods.py +++ b/dzgui/api/mods.py @@ -53,7 +53,8 @@ def is_mission(path: Path) -> bool: file = path / "init.c" return file.exists() -def tokenize(file: str) -> dict[Any] | None: +def tokenize(mod: Path) -> dict[Any] | None: + file = mod.joinpath("meta.cpp") delimiter=r"\s*=\s*" modmeta = {} try: