mod: use Path instead of strings
This commit is contained in:
parent
6918e175c4
commit
5cfab64b07
2 changed files with 9 additions and 6 deletions
|
|
@ -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}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue