From d4b0fc84df7025cf20cf15fc24b46d451e8e8f24 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Fri, 12 Apr 2024 15:48:17 +0200 Subject: [PATCH] Update apply_configuration() function --- src/core.gd | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/core.gd b/src/core.gd index f072490..be6de24 100644 --- a/src/core.gd +++ b/src/core.gd @@ -167,15 +167,13 @@ func reload_configuration(new_config: CoreConfiguration = CoreConfiguration.new( func apply_configuration() -> void: if loggeri != null: loggeri.verb("Applying configuration") if is_devmode() and loggeri != null: loggeri.warn("The CORE Framework is in development mode. Here be dragons!") - if config.headless and loggeri != null: loggeri.warn("CORE is in headless mode. Certain modules will not work as expected.") if !config.custom_modules: - if loggeri != null: loggeri.verb("Removing all custom modules (custom modules support is disabled)") + if loggeri != null: loggeri.diag("Removing all custom modules (custom modules support is disabled)") for module in custom_modules: unregister_custom_module(module) for module in modules: get(module)._pull_config() if config.custom_modules: for module in custom_modules: - if loggeri != null: loggeri.diag("Updating configuration for custom module \"" + module.name + "\"") - module._pull_config() + custom_modules[module]._pull_config() # +++ custom module support +++ ## Registers a new custom module.