Unstable v0.10.600.0
This commit is contained in:
@@ -730,6 +730,7 @@ namespace Barotrauma
|
||||
public static bool EnableSubmarineAutoSave { get; set; }
|
||||
public static int MaximumAutoSaves { get; set; }
|
||||
public static Color SubEditorBackgroundColor { get; set; }
|
||||
public static int SubEditorMaxUndoBuffer { get; set; }
|
||||
|
||||
public bool ShowTutorialSkipWarning
|
||||
{
|
||||
@@ -898,6 +899,7 @@ namespace Barotrauma
|
||||
new XAttribute("submarineautosave", EnableSubmarineAutoSave),
|
||||
new XAttribute("maxautosaves", MaximumAutoSaves),
|
||||
new XAttribute("subeditorbackground", XMLExtensions.ColorToString(SubEditorBackgroundColor)),
|
||||
new XAttribute("subeditorundobuffer", SubEditorMaxUndoBuffer),
|
||||
new XAttribute("enablesplashscreen", EnableSplashScreen),
|
||||
new XAttribute("usesteammatchmaking", UseSteamMatchmaking),
|
||||
new XAttribute("quickstartsub", QuickStartSubmarineName),
|
||||
@@ -1033,7 +1035,7 @@ namespace Barotrauma
|
||||
{
|
||||
DebugConsole.ThrowError("Saving game settings failed.", e);
|
||||
GameAnalyticsManager.AddErrorEventOnce("GameSettings.Save:SaveFailed", GameAnalyticsSDK.Net.EGAErrorSeverity.Error,
|
||||
"Saving game settings failed.\n" + e.Message + "\n" + e.StackTrace);
|
||||
"Saving game settings failed.\n" + e.Message + "\n" + e.StackTrace.CleanupStackTrace());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1119,6 +1121,7 @@ namespace Barotrauma
|
||||
new XAttribute("verboselogging", VerboseLogging),
|
||||
new XAttribute("savedebugconsolelogs", SaveDebugConsoleLogs),
|
||||
new XAttribute("submarineautosave", EnableSubmarineAutoSave),
|
||||
new XAttribute("subeditorundobuffer", SubEditorMaxUndoBuffer),
|
||||
new XAttribute("maxautosaves", MaximumAutoSaves),
|
||||
new XAttribute("subeditorbackground", XMLExtensions.ColorToString(SubEditorBackgroundColor)),
|
||||
new XAttribute("enablesplashscreen", EnableSplashScreen),
|
||||
@@ -1232,17 +1235,6 @@ namespace Barotrauma
|
||||
|
||||
doc.Root.Add(contentPackagesElement);
|
||||
|
||||
#if UNSTABLE
|
||||
//TODO: remove at some point
|
||||
foreach (ContentPackage package in AllEnabledPackages)
|
||||
{
|
||||
XElement compatibilityElement = new XElement("contentpackage");
|
||||
compatibilityElement.Add(new XAttribute("path", package.Path));
|
||||
|
||||
doc.Root.Add(compatibilityElement);
|
||||
}
|
||||
#endif
|
||||
|
||||
#if CLIENT
|
||||
var keyMappingElement = new XElement("keymapping");
|
||||
doc.Root.Add(keyMappingElement);
|
||||
@@ -1337,7 +1329,7 @@ namespace Barotrauma
|
||||
{
|
||||
DebugConsole.ThrowError("Saving game settings failed.", e);
|
||||
GameAnalyticsManager.AddErrorEventOnce("GameSettings.Save:SaveFailed", GameAnalyticsSDK.Net.EGAErrorSeverity.Error,
|
||||
"Saving game settings failed.\n" + e.Message + "\n" + e.StackTrace);
|
||||
"Saving game settings failed.\n" + e.Message + "\n" + e.StackTrace.CleanupStackTrace());
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
@@ -1355,6 +1347,7 @@ namespace Barotrauma
|
||||
EnableSubmarineAutoSave = doc.Root.GetAttributeBool("submarineautosave", true);
|
||||
MaximumAutoSaves = doc.Root.GetAttributeInt("maxautosaves", 8);
|
||||
SubEditorBackgroundColor = doc.Root.GetAttributeColor("subeditorbackground", new Color(0.051f, 0.149f, 0.271f, 1.0f));
|
||||
SubEditorMaxUndoBuffer = doc.Root.GetAttributeInt("subeditorundobuffer", 32);
|
||||
UseSteamMatchmaking = doc.Root.GetAttributeBool("usesteammatchmaking", UseSteamMatchmaking);
|
||||
RequireSteamAuthentication = doc.Root.GetAttributeBool("requiresteamauthentication", RequireSteamAuthentication);
|
||||
EnableSplashScreen = doc.Root.GetAttributeBool("enablesplashscreen", EnableSplashScreen);
|
||||
|
||||
Reference in New Issue
Block a user