Core.new() now requires awaiting... hmm...

This commit is contained in:
JeremyStar™ 2024-05-10 21:21:20 +02:00
parent 1926620e45
commit cc75f108da
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D
2 changed files with 2 additions and 2 deletions

View file

@ -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()

View file

@ -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