Merge pull request #9537 from penev92/fixLaunch

Fix crash when launching the game directly into a mod with missing assets
This commit is contained in:
Matthias Mailänder
2015-10-10 18:59:19 +02:00
2 changed files with 44 additions and 39 deletions

View File

@@ -41,16 +41,6 @@ namespace OpenRA.Mods.Common.LoadScreens
Ui.ResetAll();
Game.Settings.Save();
var installData = Game.ModData.Manifest.Get<ContentInstaller>();
var isModContentInstalled = installData.TestFiles.All(f => GlobalFileSystem.Exists(Path.GetFileName(f)));
// Mod assets are missing!
if (!isModContentInstalled)
{
Game.InitializeMod("modchooser", new Arguments());
return;
}
// Join a server directly
var connect = Launch.GetConnectAddress();
if (!string.IsNullOrEmpty(connect))