Disabled debug logging of the loading coroutine when verbose logging isn't enabled
This commit is contained in:
@@ -41,7 +41,10 @@ namespace Barotrauma
|
|||||||
set
|
set
|
||||||
{
|
{
|
||||||
loadState = value;
|
loadState = value;
|
||||||
DebugConsole.NewMessage("Loading: " + value.ToString() + "%",Color.Yellow);
|
if (GameSettings.VerboseLogging)
|
||||||
|
{
|
||||||
|
DebugConsole.NewMessage("Loading: " + value.ToString() + "%", Color.Yellow);
|
||||||
|
}
|
||||||
DrawLoadingText = true;
|
DrawLoadingText = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -199,7 +199,10 @@ namespace Barotrauma
|
|||||||
|
|
||||||
private IEnumerable<object> Load()
|
private IEnumerable<object> Load()
|
||||||
{
|
{
|
||||||
DebugConsole.NewMessage("LOADING COROUTINE", Color.Lime);
|
if (GameSettings.VerboseLogging)
|
||||||
|
{
|
||||||
|
DebugConsole.NewMessage("LOADING COROUTINE", Color.Lime);
|
||||||
|
}
|
||||||
GUI.GraphicsDevice = base.GraphicsDevice;
|
GUI.GraphicsDevice = base.GraphicsDevice;
|
||||||
GUI.Init(Content);
|
GUI.Init(Content);
|
||||||
|
|
||||||
@@ -283,7 +286,10 @@ namespace Barotrauma
|
|||||||
|
|
||||||
TitleScreen.LoadState = 100.0f;
|
TitleScreen.LoadState = 100.0f;
|
||||||
hasLoaded = true;
|
hasLoaded = true;
|
||||||
DebugConsole.NewMessage("LOADING COROUTINE FINISHED", Color.Lime);
|
if (GameSettings.VerboseLogging)
|
||||||
|
{
|
||||||
|
DebugConsole.NewMessage("LOADING COROUTINE FINISHED", Color.Lime);
|
||||||
|
}
|
||||||
yield return CoroutineStatus.Success;
|
yield return CoroutineStatus.Success;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -208,11 +208,17 @@ namespace Barotrauma
|
|||||||
|
|
||||||
public static void LoadAll(List<string> filePaths)
|
public static void LoadAll(List<string> filePaths)
|
||||||
{
|
{
|
||||||
DebugConsole.Log("Loading item prefabs: ");
|
if (GameSettings.VerboseLogging)
|
||||||
|
{
|
||||||
|
DebugConsole.Log("Loading item prefabs: ");
|
||||||
|
}
|
||||||
|
|
||||||
foreach (string filePath in filePaths)
|
foreach (string filePath in filePaths)
|
||||||
{
|
{
|
||||||
DebugConsole.Log("*** "+filePath+" ***");
|
if (GameSettings.VerboseLogging)
|
||||||
|
{
|
||||||
|
DebugConsole.Log("*** " + filePath + " ***");
|
||||||
|
}
|
||||||
|
|
||||||
XDocument doc = ToolBox.TryLoadXml(filePath);
|
XDocument doc = ToolBox.TryLoadXml(filePath);
|
||||||
if (doc == null) return;
|
if (doc == null) return;
|
||||||
|
|||||||
Reference in New Issue
Block a user