Replace queue_free() call with sth more robust

This commit is contained in:
JeremyStar™ 2024-05-10 21:19:27 +02:00
parent 61da7fb367
commit 1926620e45
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D

View file

@ -98,7 +98,9 @@ func _init(new_config: CoreConfiguration = CoreConfiguration.new()) -> void:
var inittime: int = Time.get_ticks_msec() var inittime: int = Time.get_ticks_msec()
name = "CORE" name = "CORE"
if !check_godot_version(): return if !check_godot_version(): return
if !determine_basepath(): queue_free() if !determine_basepath():
get_tree().quit(70)
while true: await get_tree().create_timer(9999).timeout
custom_modules_node = Node.new() custom_modules_node = Node.new()
reload_configuration(new_config) reload_configuration(new_config)
initialize_modules() initialize_modules()