From e30423d9434fbc68373c0affc9c5ed1023f055aa Mon Sep 17 00:00:00 2001 From: ddbb07 <50288525+ddbb07@users.noreply.github.com> Date: Wed, 26 May 2021 13:47:40 +0200 Subject: [PATCH] Cleaned Starsector script - Cleaned the list save part of the Starsector script --- games/game_starsector.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/games/game_starsector.py b/games/game_starsector.py index 3e0c89a..a886bf1 100644 --- a/games/game_starsector.py +++ b/games/game_starsector.py @@ -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_*") + ]