Option to log debug console output to a file. Closes #318

This commit is contained in:
Joonas Rikkonen
2018-04-20 20:11:01 +03:00
parent 177f31d538
commit e61dc5ae5f
5 changed files with 90 additions and 11 deletions
@@ -123,6 +123,7 @@ namespace Barotrauma
}
public static bool VerboseLogging { get; set; }
public static bool SaveDebugConsoleLogs { get; set; }
public GameSettings(string filePath)
{
@@ -141,6 +142,7 @@ namespace Barotrauma
WasGameUpdated = doc.Root.GetAttributeBool("wasgameupdated", false);
VerboseLogging = doc.Root.GetAttributeBool("verboselogging", false);
SaveDebugConsoleLogs = doc.Root.GetAttributeBool("savedebugconsolelogs", false);
if (doc == null)
{
@@ -284,6 +286,7 @@ namespace Barotrauma
new XAttribute("musicvolume", musicVolume),
new XAttribute("soundvolume", soundVolume),
new XAttribute("verboselogging", VerboseLogging),
new XAttribute("savedebugconsolelogs", SaveDebugConsoleLogs),
new XAttribute("enablesplashscreen", EnableSplashScreen));
if (WasGameUpdated)