Load custom settings from settings.ini (reading from commandline currently doesn't work)

This commit is contained in:
Paul Chote
2010-01-02 02:19:53 -08:00
parent 0a7ffc8cc9
commit df1c49dacb
6 changed files with 57 additions and 48 deletions

View File

@@ -70,16 +70,12 @@ namespace SequenceEditor
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
FileSystem.MountDefaultPackages();
try
{
FileSystem.MountDefault( true );
}
catch( FileNotFoundException fnf )
{
if( fnf.FileName != "expand2.mix" )
throw new InvalidOperationException( "Unable to load MIX files" );
FileSystem.MountAftermathPackages();
}
catch( FileNotFoundException ){}
FileSystem.MountTemporary(new Package("temperat.mix"));