summaryrefslogtreecommitdiffstats
path: root/gamechestcli
diff options
context:
space:
mode:
Diffstat (limited to 'gamechestcli')
-rw-r--r--gamechestcli/src/gamechest/cliactions/run.py6
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]