mod: use Path instead of strings

This commit is contained in:
Toast 2025-05-25 14:31:46 +02:00
parent 6918e175c4
commit 5cfab64b07
2 changed files with 9 additions and 6 deletions

View file

@ -20,7 +20,7 @@ class QModListModel(QAbstractListModel):
for dir in MOD_PATH.iterdir():
try:
new_mod: Mod = Mod(f"{dir.as_posix()}/")
new_mod: Mod = Mod(dir)
mods.append(new_mod)
except InvalidModError as e:
print(f"Found invalid mod at {dir}: {e.message}")