Files
OpenRA/mods/ts/installer/tibsun.yaml
RoosterDragon 578a9fe457 Fix mod content installers.
In 4312a4d3f4 MiniYaml merging was adjusted. One effect of this change was that duplicate keys in files that did not previously require merging was previously allowed, but was now an error. (Test case `TestMergeConflictsNoMerge`)

The installer files were relying on the previous behaviour to allow multiple `ContentPackage` keys. The above change caused a regression where attempting to manage mod content would crash due to now erroring on the duplicate keys.

We fix the issue by applying a unique ID suffix, as is a common pattern elsewhere in our yaml files, and teach InstallFromSourceLogic to recognise and strip it.
2024-08-03 12:10:08 +03:00

32 lines
1.1 KiB
YAML

tibsun: Tiberian Sun (GDI or Nod Disc, English)
Type: Disc
IDFiles:
README.TXT: 45745c4a0c888317ec900208a426472779c42bf7
AUTOPLAY.WAV: 2dfce5d00f98b641849c29942b651f4e98d30e30
Install:
# Base game files:
ContentPackage@tibsun:
Name: tibsun
Actions:
ExtractMix: INSTALL/TIBSUN.MIX
^SupportDir|Content/ts/cache.mix: cache.mix
^SupportDir|Content/ts/conquer.mix: conquer.mix
^SupportDir|Content/ts/isosnow.mix: isosnow.mix
^SupportDir|Content/ts/isotemp.mix: isotemp.mix
^SupportDir|Content/ts/local.mix: local.mix
^SupportDir|Content/ts/sidec01.mix: sidec01.mix
^SupportDir|Content/ts/sidec02.mix: sidec02.mix
^SupportDir|Content/ts/snow.mix: snow.mix
^SupportDir|Content/ts/sno.mix: sno.mix
^SupportDir|Content/ts/sounds.mix: sounds.mix
^SupportDir|Content/ts/speech01.mix: speech01.mix
^SupportDir|Content/ts/speech02.mix: speech02.mix
^SupportDir|Content/ts/tem.mix: tem.mix
^SupportDir|Content/ts/temperat.mix: temperat.mix
# Base game music (optional):
ContentPackage@tibsun-music:
Name: tibsun-music
Actions:
Copy: .
^SupportDir|Content/ts/scores.mix: SCORES.MIX