From cc75f108da5a350db3d5d9d1063fe6ab3514ffc3 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Fri, 10 May 2024 21:21:20 +0200 Subject: [PATCH] Core.new() now requires awaiting... hmm... --- Test.gd | 2 +- tests/unitbase.gd | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Test.gd b/Test.gd index 23ee90b..771dd61 100644 --- a/Test.gd +++ b/Test.gd @@ -31,7 +31,7 @@ func _init() -> void: config.headless = false config.development = true # Initialize CORE with custom config - core = Core.new(config) + core = await Core.new(config) config.free() diff --git a/tests/unitbase.gd b/tests/unitbase.gd index fd93501..9b212fc 100644 --- a/tests/unitbase.gd +++ b/tests/unitbase.gd @@ -33,7 +33,7 @@ func load_framework(config: CoreConfiguration = CoreConfiguration.new()) -> void if is_framework_loaded(): await unload_framework() ldiag("Loading framework") config.logger_level = CoreTypes.LoggerLevel.DIAG - core = Core.new(config) + core = await Core.new(config) get_tree().root.add_child(core) core.welcomed = true # Hides the welcome message shown by CORE so it doesn't bloat the log await get_tree().process_frame