Add support for C&C Covert Ops music (fixes half of #824).

This commit is contained in:
Paul Chote
2011-06-25 14:43:45 +12:00
parent 24a649d491
commit b64c5e001e
2 changed files with 35 additions and 5 deletions

View File

@@ -21,9 +21,11 @@ namespace OpenRA.GameRules
public MusicInfo( string key, MiniYaml value ) public MusicInfo( string key, MiniYaml value )
{ {
Filename = key+".aud";
Title = value.Value; Title = value.Value;
var nd = value.NodesDict;
var ext = nd.ContainsKey("Extension") ? nd["Extension"].Value : "aud";
Filename = (nd.ContainsKey("Filename") ? nd["Filename"].Value : key)+"."+ext;
if (!FileSystem.Exists(Filename)) if (!FileSystem.Exists(Filename))
return; return;

View File

@@ -1,23 +1,51 @@
aoi: Act on Instinct aoi: Act on Instinct
aoi2: Act on Instinct (Voiced)
Filename: aoi
Extension: var
airstrik: Air Strike airstrik: Air Strike
befeared: Be Feared
befeared2: Be Feared (Voiced)
Filename: befeared
Extension: var
80mx226m: C&C 80's mix
ccthang: C&C Thang ccthang: C&C Thang
ind2: Canyon Chase ind2: Canyon Chase
chrg226m: Charge
crep226m: Creep
stopthem: Deception stopthem: Deception
heavyg: Demolition heavyg: Demolition
die: Die
dril225m: Drill
dron226m: Drone
fwp: Fight Win Prevail fwp: Fight Win Prevail
fist226m: Fist
warfare: Full Stop
win1: Great Shot! win1: Great Shot!
win2: Great Shot! (Voiced)
Filename: win2
Extension: var
heart: Heartbreak (Voiced)
Extension: var
iam: I am (Voiced)
ind: Industrial ind: Industrial
linefire: In the Line of Fire linefire: In the Line of Fire
justdoit: Just do it! trouble: In Trouble
trouble: Looks like Trouble trouble2: In Trouble (Voiced)
Filename: trouble
Extension: var
justdoit: Just do it up!
map1: Map Theme map1: Map Theme
march: March to Doom march: March to Doom
target: Mechanical Man
nomercy: No Mercy nomercy: No Mercy
otp: On the Prowl otp: On the Prowl
prp: Prepare for Battle prp: Prepare for Battle
radio: Radio radio: Radio
rain: Rain in the Night rain: Rain in the Night
rout: Reaching out (Voiced)
Extension: var
recn226m: Recon
jdi_v2: Take em' out jdi_v2: Take em' out
target: Target
j1: Untamed Land j1: Untamed Land
warfare: Warfare valkyrie: Ride of the Valkyries
voic226m: Voices