Add support for C&C Covert Ops music (fixes half of #824).
This commit is contained in:
@@ -21,9 +21,11 @@ namespace OpenRA.GameRules
|
||||
|
||||
public MusicInfo( string key, MiniYaml value )
|
||||
{
|
||||
Filename = key+".aud";
|
||||
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))
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user