Fix SequenceEditor

This commit is contained in:
Paul Chote
2010-01-03 00:55:16 +13:00
parent e8f030ed85
commit e326b68592
2 changed files with 4 additions and 1 deletions

View File

@@ -11,6 +11,7 @@ namespace OpenRa.FileFormats
public static void MountDefaultPackages() public static void MountDefaultPackages()
{ {
FileSystem.Mount(new Folder("./"));
if( File.Exists( "main.mix" ) ) if( File.Exists( "main.mix" ) )
FileSystem.Mount( new Package( "main.mix" ) ); FileSystem.Mount( new Package( "main.mix" ) );
FileSystem.Mount( new Package( "redalert.mix" ) ); FileSystem.Mount( new Package( "redalert.mix" ) );

View File

@@ -35,7 +35,7 @@ namespace OpenRa.Game
public MainWindow(Settings settings) public MainWindow(Settings settings)
{ {
FileSystem.Mount(new Folder("./"));
FormBorderStyle = FormBorderStyle.None; FormBorderStyle = FormBorderStyle.None;
BackColor = Color.Black; BackColor = Color.Black;
@@ -47,8 +47,10 @@ namespace OpenRa.Game
Game.Settings = new UserSettings(); Game.Settings = new UserSettings();
try try
{ {
FileSystem.MountTemporary(new Folder("./"));
IniFile SettingsRules = new IniFile(FileSystem.Open("settings.ini")); IniFile SettingsRules = new IniFile(FileSystem.Open("settings.ini"));
FieldLoader.Load(Game.Settings, SettingsRules.GetSection("Settings")); FieldLoader.Load(Game.Settings, SettingsRules.GetSection("Settings"));
FileSystem.UnmountTemporaryPackages();
} }
catch (FileNotFoundException) {} catch (FileNotFoundException) {}