From acc6c4f08c8a5324665bcd3800bd3d2915cf18ec Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Sun, 14 Apr 2024 15:19:28 +0200 Subject: [PATCH] v1-r1 --- addons/CORE/src/classes/config.gd | 1 - addons/CORE/src/core.gd | 5 ++++- addons/CORE/src/logger.gd | 4 ---- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/addons/CORE/src/classes/config.gd b/addons/CORE/src/classes/config.gd index 259550c..1edfe7f 100644 --- a/addons/CORE/src/classes/config.gd +++ b/addons/CORE/src/classes/config.gd @@ -60,7 +60,6 @@ func _init() -> void: # Logger logger_level = CoreTypes.LoggerLevel.INFO logger_colored = true - logger_detect_verbose_mode = false logger_format = "%color%[%time%] [%level% %origin%] %message%" logger_newlines_override = true logger_newlines_sizelimit = 40 diff --git a/addons/CORE/src/core.gd b/addons/CORE/src/core.gd index efcda1b..4b8e3fc 100644 --- a/addons/CORE/src/core.gd +++ b/addons/CORE/src/core.gd @@ -28,7 +28,7 @@ const version_version: int = 1 ## The version type. See [enum CoreTypes.VersionType] for more information. const version_type: CoreTypes.VersionType = CoreTypes.VersionType.RELEASE ## The version type number. Resets on every new version and version type. -const version_typerelease: int = 0 +const version_typerelease: int = 1 # Modules ## Used internally for loading, managing and unloading modules. @@ -175,6 +175,9 @@ func apply_configuration() -> void: if config.custom_modules: for module in custom_modules: custom_modules[module]._pull_config() + + # Workaround + logger.verbose_mode = OS.is_stdout_verbose() # +++ custom module support +++ ## Registers a new custom module. diff --git a/addons/CORE/src/logger.gd b/addons/CORE/src/logger.gd index 11f9244..e0ad18e 100644 --- a/addons/CORE/src/logger.gd +++ b/addons/CORE/src/logger.gd @@ -45,10 +45,6 @@ var config_newlines_override: bool var config_newlines_sizelimit: int # +++ module +++ -func _initialize() -> void: - if core.config.logger_detect_verbose_mode and OS.is_stdout_verbose(): - verbose_mode = true - func _cleanup() -> void: _schedule() await get_tree().process_frame