Skip to content

Commit 684bbec

Browse files
committed
Lil tweaks
1 parent cff1ca6 commit 684bbec

1 file changed

Lines changed: 6 additions & 11 deletions

File tree

games/game_fantasylifei.py

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def init(self, organizer: mobase.IOrganizer) -> bool:
5959
def executables(self):
6060
return [
6161
mobase.ExecutableInfo(
62-
"Fantasy Life i", self.GameBinary
62+
"Fantasy Life I", self.GameBinary
6363
),
6464
]
6565

@@ -120,19 +120,14 @@ def isArchiveSupported(self, tree: mobase.IFileTree) -> bool:
120120
return False
121121

122122
def install(self, name: mobase.GuessedString, tree: mobase.IFileTree, version: str, nexus_id: int) -> mobase.InstallResult:
123-
123+
paks_dir = QDir(".").filePath("Paks/~mods/")
124+
mods_dir = QDir(".").filePath(f"Mods/{name.__str__()}/")
125+
124126
for entry in list(tree):
125127
if entry.name().lower().endswith(self._PAK_EXTENSIONS):
126-
paks_dir = QDir(".").filePath("Paks")
127-
target_dir = QDir(paks_dir).filePath("~mods/")
128-
QDir().mkpath(target_dir)
129-
tree.move(entry, target_dir)
128+
tree.move(entry, paks_dir)
130129

131130
if tree.exists("Mod.json", mobase.IFileTree.FILE):
132-
mods_dir = QDir(".").filePath("Mods")
133-
target_dir = QDir(mods_dir).filePath(f"{name.__str__()}/")
134-
QDir().mkpath(target_dir)
135-
136-
for entry in list(tree): tree.move(entry, target_dir)
131+
for entry in list(tree): tree.move(entry, mods_dir)
137132

138133
return mobase.InstallResult.SUCCESS

0 commit comments

Comments
 (0)