Load default packages from the default mod

This commit is contained in:
Paul Chote
2010-01-30 12:13:25 +13:00
parent 08c0e2a02d
commit ec849c19ab
4 changed files with 40 additions and 12 deletions

View File

@@ -49,12 +49,13 @@ namespace OpenRa
}
LoadUserSettings(settings);
// Load the default mod to access required files
Game.LoadModPackages(new Manifest(Game.LobbyInfo.GlobalSettings.Mods));
UiOverlay.ShowUnitDebug = Game.Settings.UnitDebug;
WorldRenderer.ShowUnitPaths = Game.Settings.PathDebug;
Renderer.SheetSize = Game.Settings.SheetSize;
FileSystem.MountDefaultPackages();
bool windowed = !Game.Settings.Fullscreen;
renderer = new Renderer(this, GetResolution(settings), windowed);