mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Allow using yaml for campaign definitions.
JSON continues to be supported as well. No additional work needed here, just needed to allow both.
This commit is contained in:
@@ -231,7 +231,7 @@ def create_game(
|
||||
# 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_file(campaign_path)
|
||||
generator = GameGenerator(
|
||||
FACTIONS[blue],
|
||||
FACTIONS[red],
|
||||
|
||||
Reference in New Issue
Block a user