def generate_script(self, db_game, script_path): """Output a script to a file. The script is capable of launching a game without the client """ game = Game(db_game["id"]) game.load_config() game.write_script(script_path)
def on_game_updated(self, game): """Callback to refresh the view when a game is updated""" logger.debug("Updating game %s", game) if not game.is_installed: game = Game(game_id=game.id) self.game_selection_changed(None, None) game.load_config() try: self.game_store.update_game_by_id(game.id) except ValueError: self.game_store.add_game_by_id(game.id) return True