diff options
author | vg <vgm+dev@devys.org> | 2024-05-24 16:33:44 +0200 |
---|---|---|
committer | vg <vgm+dev@devys.org> | 2024-05-24 16:33:44 +0200 |
commit | 89d047893708e04a6cbef96bd25d392497524788 (patch) | |
tree | 5310d0fbd5e8b5ade373676cffa1658b035a8dbe | |
parent | ba9cb6210b1900f24c940c5b579168dd6fd1a7f5 (diff) | |
download | gamechest-89d047893708e04a6cbef96bd25d392497524788.tar.gz gamechest-89d047893708e04a6cbef96bd25d392497524788.tar.bz2 gamechest-89d047893708e04a6cbef96bd25d392497524788.zip |
git-sync on seele
-rw-r--r-- | gamechestcli/gamechest/gamedb.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/gamechestcli/gamechest/gamedb.py b/gamechestcli/gamechest/gamedb.py index d372089..1f9e8d8 100644 --- a/gamechestcli/gamechest/gamedb.py +++ b/gamechestcli/gamechest/gamedb.py @@ -34,10 +34,17 @@ class GameDB: # for item in game_dir.glob('*') if item.is_dir())[-1] tools_bin_path = config.get_games_saves_tools_bin_path() #profile_dir = config.get_profile_dir(profile_id) + command_from_game_info = [ + f'{tools_bin_path}/runners/{game_info["command"][0]}', + *game_info['command'][1:], + ] if game_info.get('command') else [ + f'{tools_bin_path}/runners/run-{game_info["id"]}', + ] command = [ + # mods *[f'{tools_bin_path}/mod-{item}' for item in game_mods], - *[item if index > 0 else f'{tools_bin_path}/runners/{item}' - for index, item in enumerate(game_info['command'])], + # runner + *command_from_game_info, ] return command |