Aftermath support, and spinners (on MGG, MRJ, TTNK) work (again?).

This commit is contained in:
Bob
2009-11-25 22:55:40 +13:00
parent 7c1c0835e1
commit ea096361bb
14 changed files with 732 additions and 55 deletions

View File

@@ -6,6 +6,7 @@ using OpenRa.FileFormats;
using System.Xml;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
namespace SequenceEditor
{
@@ -69,11 +70,15 @@ namespace SequenceEditor
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
FileSystem.Mount(new Folder("./"));
var packages = new[] { "redalert", "conquer", "hires", "general", "local", "temperat" };
foreach( var p in packages )
FileSystem.Mount( new Package( p + ".mix" ));
try
{
FileSystem.MountDefault( true );
}
catch( FileNotFoundException fnf )
{
if( fnf.FileName != "expand2.mix" )
throw new InvalidOperationException( "Unable to load MIX files" );
}
Doc = new XmlDocument();
Doc.Load("sequences.xml");