Use main.mix, if it exists.
This commit is contained in:
@@ -38,9 +38,10 @@ namespace OpenRa.FileFormats
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
s.Seek( 0, SeekOrigin.Begin );
|
||||||
|
|
||||||
isEncrypted = false;
|
isEncrypted = false;
|
||||||
s.Seek(0, SeekOrigin.Begin);
|
|
||||||
index = ParseTdHeader(s, out dataStart).ToDictionary(x => x.Hash);
|
index = ParseTdHeader(s, out dataStart).ToDictionary(x => x.Hash);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -26,7 +26,9 @@ namespace OpenRa.Game
|
|||||||
|
|
||||||
public MainWindow(Settings settings)
|
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("redalert.mix"));
|
||||||
FileSystem.Mount(new Package("conquer.mix"));
|
FileSystem.Mount(new Package("conquer.mix"));
|
||||||
FileSystem.Mount(new Package("hires.mix"));
|
FileSystem.Mount(new Package("hires.mix"));
|
||||||
|
|||||||
Reference in New Issue
Block a user