From 45d712d390292b0a189aec77d99c7c8f969fd1a9 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Thu, 9 Sep 2010 19:26:33 +1200 Subject: [PATCH] Fix defaultmod. --- OpenRA.Game/Graphics/SequenceProvider.cs | 4 +++- mods/default/{sequences.xml => cursors.xml} | 0 mods/default/mod.yaml | 20 ++++---------------- 3 files changed, 7 insertions(+), 17 deletions(-) rename mods/default/{sequences.xml => cursors.xml} (100%) diff --git a/OpenRA.Game/Graphics/SequenceProvider.cs b/OpenRA.Game/Graphics/SequenceProvider.cs index 7cc5a5beea..5599851106 100644 --- a/OpenRA.Game/Graphics/SequenceProvider.cs +++ b/OpenRA.Game/Graphics/SequenceProvider.cs @@ -24,7 +24,9 @@ namespace OpenRA.Graphics public static void Initialize(string[] sequenceFiles) { units = new Dictionary>(); - + if (sequenceFiles.Length == 0) + return; + var sequences = sequenceFiles .Select(s => MiniYaml.FromFile(s)) .Aggregate(MiniYaml.Merge); diff --git a/mods/default/sequences.xml b/mods/default/cursors.xml similarity index 100% rename from mods/default/sequences.xml rename to mods/default/cursors.xml diff --git a/mods/default/mod.yaml b/mods/default/mod.yaml index f9a075e81f..e652c54e9b 100644 --- a/mods/default/mod.yaml +++ b/mods/default/mod.yaml @@ -1,30 +1,18 @@ # Default Game Mod Folders: - ./mods/default - ./ - -Packages: - + . + mods/default Rules: mods/default/system.yaml - -Sequences: - mods/default/sequences.xml +Cursors: + mods/default/cursors.xml Assemblies: mods/ra/OpenRA.Mods.RA.dll -Weapons: - -Voices: - -Music: - TileSets: mods/default/tileset-dummy.yaml - Chrome: mods/default/chrome.xml: - ChromeLayout: mods/default/menus.yaml: