(0d11c0779) Select the vanilla content package if no core content packages are enabled on startup, or when disabling a core content package from the workshop menu. Closes #1424

This commit is contained in:
Joonas Rikkonen
2019-04-18 12:05:59 +03:00
parent 6aef4073b7
commit ea54fa24fe
4 changed files with 117 additions and 8 deletions
@@ -53,6 +53,21 @@ namespace Barotrauma
get { return Config.SelectedContentPackages; }
}
private static ContentPackage vanillaContent;
public static ContentPackage VanillaContent
{
get
{
if (vanillaContent == null)
{
// TODO: Dynamic method for defining and finding the vanilla content package.
vanillaContent = ContentPackage.List.SingleOrDefault(cp => Path.GetFileName(cp.Path).ToLowerInvariant() == "vanilla 0.9.xml");
}
return vanillaContent;
}
}
public readonly string[] CommandLineArgs;
public GameMain(string[] args)