Use main.mix, if it exists.

This commit is contained in:
Bob
2009-11-23 16:33:01 +13:00
parent 6bca332959
commit d5d013ad32
2 changed files with 5 additions and 2 deletions

View File

@@ -38,9 +38,10 @@ namespace OpenRa.FileFormats
return;
}
}
else
s.Seek( 0, SeekOrigin.Begin );
isEncrypted = false;
s.Seek(0, SeekOrigin.Begin);
index = ParseTdHeader(s, out dataStart).ToDictionary(x => x.Hash);
}

View File

@@ -26,7 +26,9 @@ namespace OpenRa.Game
public MainWindow(Settings settings)
{
FileSystem.Mount(new Folder("../../../../"));
FileSystem.Mount( new Folder( "../../../../" ) );
if( File.Exists( "../../../../main.mix" ) )
FileSystem.Mount(new Package("main.mix"));
FileSystem.Mount(new Package("redalert.mix"));
FileSystem.Mount(new Package("conquer.mix"));
FileSystem.Mount(new Package("hires.mix"));