Skip to content

Commit 1a52db6

Browse files
[pre-commit.ci] Auto fixes from pre-commit.com hooks.
1 parent e368934 commit 1a52db6

1 file changed

Lines changed: 12 additions & 6 deletions

File tree

games/game_fantasylifei.py

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
from ..basic_game import BasicGame
1010
from ..steam_utils import find_steam_path
1111

12+
1213
class FantasyLifeIModDataChecker(mobase.ModDataChecker):
1314
def __init__(self: mobase.ModDataChecker) -> None:
1415
super().__init__()
@@ -18,15 +19,17 @@ def __init__(self: mobase.ModDataChecker) -> None:
1819
def _api_mod(self, tree: mobase.IFileTree, mods_path: str) -> bool:
1920
if not tree.exists(mods_path, mobase.IFileTree.DIRECTORY):
2021
return False
21-
22+
2223
try:
2324
for mod_folder in tree.find(mods_path, mobase.IFileTree.DIRECTORY):
24-
folder_name = mod_folder.name();
25+
folder_name = mod_folder.name()
2526

2627
for subentry in mod_folder:
27-
subname = subentry.name();
28+
subname = subentry.name()
2829

29-
if subname.lower() == "mod.json" or subname.lower().endswith('.mod'):
30+
if subname.lower() == "mod.json" or subname.lower().endswith(
31+
".mod"
32+
):
3033
return True
3134

3235
except Exception:
@@ -47,7 +50,9 @@ def _pak_mod(self, tree: mobase.IFileTree, paks_path: str) -> bool:
4750
return False
4851
return False
4952

50-
def dataLooksValid(self, filetree: mobase.IFileTree) -> mobase.ModDataChecker.CheckReturn:
53+
def dataLooksValid(
54+
self, filetree: mobase.IFileTree
55+
) -> mobase.ModDataChecker.CheckReturn:
5156
if filetree.exists("Game", mobase.IFileTree.DIRECTORY):
5257
pass
5358

@@ -61,6 +66,7 @@ def dataLooksValid(self, filetree: mobase.IFileTree) -> mobase.ModDataChecker.Ch
6166

6267
return mobase.ModDataChecker.INVALID
6368

69+
6470
class FantasyLifeI(BasicGame, mobase.IPluginFileMapper):
6571
Name = "Fantasy Life I Support Plugin"
6672
Author = "AmeliaCute"
@@ -135,4 +141,4 @@ def exeDirectory(self) -> QDir:
135141
def mappings(self) -> list[mobase.Mapping]:
136142
return [
137143
mobase.Mapping("*.dll", self.exeDirectory().absolutePath(), False, True),
138-
]
144+
]

0 commit comments

Comments
 (0)