From c5682ecf436cdbf4931609b0d93b1b430600bea6 Mon Sep 17 00:00:00 2001 From: "Alexander \"PapaTutuWawa" Date: Sat, 2 Dec 2023 21:51:08 +0100 Subject: [PATCH] Before doing anything, check if we COULD start --- lmm/cli.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lmm/cli.py b/lmm/cli.py index 936b7e7..3bef423 100644 --- a/lmm/cli.py +++ b/lmm/cli.py @@ -39,6 +39,15 @@ def launch(game: str, profile: str): click.echo("Profile not found") return + # Check if the game can start. + if not game.can_start(): + click.echo("Cannot start game:") + + for issue in game.cannot_start_reasons(): + click.echo(issue) + return + + # Check if we have a runner available. runner = None if profile.runner is not None: runner = profile.runner