Option to log debug console output to a file. Closes #318
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user