From 43bd1f1ea3d18961b4d919c38e54ab4455ccf779 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Fri, 5 Feb 2010 20:38:58 +1300 Subject: [PATCH] Start pruning unused sequences --- OpenRa.Game/Graphics/SequenceProvider.cs | 7 +- mods/cnc/mod.yaml | 1 + mods/cnc/sequences.xml | 302 +---------------------- 3 files changed, 16 insertions(+), 294 deletions(-) diff --git a/OpenRa.Game/Graphics/SequenceProvider.cs b/OpenRa.Game/Graphics/SequenceProvider.cs index 92150dc8e7..e766f6a759 100644 --- a/OpenRa.Game/Graphics/SequenceProvider.cs +++ b/OpenRa.Game/Graphics/SequenceProvider.cs @@ -70,7 +70,12 @@ namespace OpenRa.Graphics public static CursorSequence GetCursorSequence(string cursor) { - return cursors[cursor]; + try { return cursors[cursor]; } + catch (KeyNotFoundException) + { + throw new InvalidOperationException( + "Cursor does not have a sequence `{0}`".F(cursor)); + } } } } diff --git a/mods/cnc/mod.yaml b/mods/cnc/mod.yaml index 222a4700aa..9490795429 100644 --- a/mods/cnc/mod.yaml +++ b/mods/cnc/mod.yaml @@ -11,6 +11,7 @@ Packages: # mods/cnc/packages/general.mix mods/cnc/packages/sounds.mix mods/cnc/packages/tempicnh.mix + mods/cnc/packages/updatec.mix ~main.mix redalert.mix hires.mix diff --git a/mods/cnc/sequences.xml b/mods/cnc/sequences.xml index c19a91f0f0..6bf70a94fb 100644 --- a/mods/cnc/sequences.xml +++ b/mods/cnc/sequences.xml @@ -1,50 +1,6 @@  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -64,20 +20,6 @@ - - - - - - - - - - - - - - @@ -90,36 +32,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -155,8 +67,6 @@ - - @@ -164,25 +74,6 @@ - - - - - - - - - - - - - - - - - - - @@ -237,6 +128,7 @@ + @@ -283,13 +175,6 @@ - - - - - - - @@ -373,40 +258,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -423,12 +274,7 @@ - - - - - - + @@ -441,12 +287,6 @@ - - - - - - @@ -658,93 +498,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -787,34 +540,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -906,32 +631,23 @@ - - - - - - - - - + + + - - - + + + - - -