Modified Logger

This commit is contained in:
Mueller Wayan
2025-04-21 19:19:26 +02:00
parent 51493135df
commit 766b2e414b
34 changed files with 652 additions and 128 deletions
+2 -2
View File
@@ -14,7 +14,7 @@ namespace Firebird2D.Configuration
public bool FullScreen { get { return _fullScreen; } set { _fullScreen = value; updateConfig(); } }
public bool LogActive { get { return _logActive; } set { _logActive = value; GameLogger.logActive = value; updateConfig(); } }
public bool LogActive { get { return _logActive; } set { _logActive = value; GameLogger.LogActive = value; updateConfig(); } }
private static readonly string ConfigSchema = "Configuration/ConfigurationSchema/ConfigSchema.json";
@@ -61,7 +61,7 @@ namespace Firebird2D.Configuration
_videoMode.Height = uint.Parse(_configurationSection["ScreenResolution:y"]);
_fullScreen = bool.Parse(_configurationSection["Fullscreen"]);
_logActive = bool.Parse(_configurationSection["Log"]);
GameLogger.logActive = _logActive;
GameLogger.LogActive = _logActive;
}
catch(Exception ex)
{