Before doing anything, check if we COULD start
This commit is contained in:
		
							parent
							
								
									e3038fc4d5
								
							
						
					
					
						commit
						c5682ecf43
					
				@ -39,6 +39,15 @@ def launch(game: str, profile: str):
 | 
				
			|||||||
        click.echo("Profile not found")
 | 
					        click.echo("Profile not found")
 | 
				
			||||||
        return
 | 
					        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
 | 
					    runner = None
 | 
				
			||||||
    if profile.runner is not None:
 | 
					    if profile.runner is not None:
 | 
				
			||||||
        runner = profile.runner
 | 
					        runner = profile.runner
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user