Core.new() now requires awaiting... hmm...
This commit is contained in:
parent
1926620e45
commit
cc75f108da
2 changed files with 2 additions and 2 deletions
2
Test.gd
2
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()
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue