diff options
| author | vg <vgm+dev@devys.org> | 2026-04-19 11:48:24 +0200 |
|---|---|---|
| committer | vg <vgm+dev@devys.org> | 2026-04-19 11:48:24 +0200 |
| commit | 81dd33cb91e0622e19d369671745db7c298f3a6c (patch) | |
| tree | 875003774a243e638956ad121105af1845887897 /gamechestcli | |
| parent | b1287ad2fa5a734dd56193d54ec07c66b0865f0c (diff) | |
| download | gamechest-81dd33cb91e0622e19d369671745db7c298f3a6c.tar.gz gamechest-81dd33cb91e0622e19d369671745db7c298f3a6c.tar.bz2 gamechest-81dd33cb91e0622e19d369671745db7c298f3a6c.zip | |
let the game info override game and profile id for subgames
Diffstat (limited to 'gamechestcli')
| -rw-r--r-- | gamechestcli/src/gamechest/cliactions/run.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gamechestcli/src/gamechest/cliactions/run.py b/gamechestcli/src/gamechest/cliactions/run.py index 1c55cc4..142b0d8 100644 --- a/gamechestcli/src/gamechest/cliactions/run.py +++ b/gamechestcli/src/gamechest/cliactions/run.py @@ -11,8 +11,10 @@ from ..statusdb import StatusDB def run_game(game_db, profile_id, game_info): command = game_db.get_game_command(profile_id, game_info['id']) profile_dir = Path(config.get_profile_dir(profile_id)) - profile_game_dir = profile_dir / game_info['id'] - game_dir = config.get_games_install_basedir() / game_info['id'] + profile_dir_id = game_info.get('profile_dir_id_override', game_info['id']) + profile_game_dir = profile_dir / profile_dir_id + game_dir_id = game_info.get('game_dir_id_override', game_info['id']) + game_dir = config.get_games_install_basedir() / game_dir_id # note: glob('*/') globs regular files too, thus I filter on is_dir. game_dir = list(item for item in game_dir.glob('*') if item.is_dir())[-1] |
