Release 1.8.6.2 - Calm Before the Storm

This commit is contained in:
Markus Isberg
2025-04-10 11:29:43 +00:00
parent c2705bc701
commit 14f61af41c
32 changed files with 505 additions and 199 deletions
@@ -542,6 +542,7 @@ namespace Barotrauma
{
currentConfig = Config.FromElement(currentConfigDoc.Root ?? throw new NullReferenceException("Config XML element is invalid: document is null."));
#if CLIENT
MainMenuScreen.DismissedNotifications = currentConfigDoc.Root.GetAttributeIdentifierArray(nameof(MainMenuScreen.DismissedNotifications), defaultValue: Array.Empty<Identifier>()).ToHashSet();
ServerListFilters.Init(currentConfigDoc.Root.GetChildElement("serverfilters"));
MultiplayerPreferences.Init(
currentConfigDoc.Root.GetChildElement("player"),
@@ -660,6 +661,8 @@ namespace Barotrauma
}
#if CLIENT
root.Add(new XAttribute(nameof(MainMenuScreen.DismissedNotifications), string.Join(',', MainMenuScreen.DismissedNotifications.Select(n => n.Value))));
XElement serverFiltersElement = new XElement("serverfilters"); root.Add(serverFiltersElement);
ServerListFilters.Instance.SaveTo(serverFiltersElement);