Fix CLI campaign generator.

Factions can be loaded from the user directory now so we need to know
where that is.
This commit is contained in:
Dan Albert 2021-05-07 17:13:03 -07:00
parent 0d7f00aef6
commit 3c9d21e38d

View File

@ -172,6 +172,12 @@ def create_game(
inverted: bool,
cheats: bool,
) -> Game:
first_start = liberation_install.init()
if first_start:
sys.exit(
"Cannot generate campaign without configuring DCS Liberation. Start the UI "
"for the first run configuration."
)
campaign = Campaign.from_json(campaign_path)
generator = GameGenerator(
blue,