mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Fix pydcs loadout cache for command line launcher.
This commit is contained in:
parent
37748ef3bd
commit
748a752e29
@ -196,6 +196,15 @@ def create_game(
|
|||||||
"Cannot generate campaign without configuring DCS Liberation. Start the UI "
|
"Cannot generate campaign without configuring DCS Liberation. Start the UI "
|
||||||
"for the first run configuration."
|
"for the first run configuration."
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# This needs to run before the pydcs payload cache is created, which happens
|
||||||
|
# extremely early. It's not a problem that we inject these paths twice because we'll
|
||||||
|
# get the same answers each time.
|
||||||
|
#
|
||||||
|
# Without this, it is not possible to use next turn (or anything that needs to check
|
||||||
|
# for loadouts) without saving the generated campaign and reloading it the normal
|
||||||
|
# way.
|
||||||
|
inject_custom_payloads(Path(persistency.base_path()))
|
||||||
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