mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
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:
parent
0d7f00aef6
commit
3c9d21e38d
@ -172,6 +172,12 @@ def create_game(
|
|||||||
inverted: bool,
|
inverted: bool,
|
||||||
cheats: bool,
|
cheats: bool,
|
||||||
) -> Game:
|
) -> 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)
|
campaign = Campaign.from_json(campaign_path)
|
||||||
generator = GameGenerator(
|
generator = GameGenerator(
|
||||||
blue,
|
blue,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user