Cleaned Starsector script

- Cleaned the list save part of the Starsector script
This commit is contained in:
ddbb07
2021-05-26 13:47:40 +02:00
parent ff8e85408d
commit e30423d943
+5 -5
View File
@@ -12,7 +12,7 @@ from ..basic_game import BasicGame, BasicGameSaveGame
class Starsector(BasicGame):
Name = "Starsector Support Plugin"
Author = "ddbb07"
Version = "1.0.0"
Version = "1.0.1"
GameName = "Starsector"
GameShortName = "starsector"
@@ -22,7 +22,7 @@ class Starsector(BasicGame):
GameSavesDirectory = "%GAME_PATH%/saves"
def listSaves(self, folder: QDir) -> List[mobase.ISaveGame]:
saves = list()
for path in Path(folder.absolutePath()).glob("save_*"):
saves.append(path)
return [BasicGameSaveGame(path) for path in saves]
return [
BasicGameSaveGame(path)
for path in Path(folder.absolutePath()).glob("save_*")
]