From 8be2024552d726de69fb0e14fac75e5efc74d6a7 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Tue, 23 Apr 2024 21:33:02 +0200 Subject: [PATCH] Update initialization failure messages Update failure messages for both the determine_basepath() methods aswell as the check_godot_version() method. --- src/core.gd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core.gd b/src/core.gd index 4a4a72e..72a458d 100644 --- a/src/core.gd +++ b/src/core.gd @@ -368,7 +368,7 @@ func determine_basepath() -> bool: elif FileAccess.file_exists("res://addons/CORE/.corebasepath"): basepath = "res://addons/CORE/" else: - assert(false, "CORE is not located at 'res://CORE/', aborting initialization") + printerr("CORE is not located at 'res://CORE/' or 'res://addons/CORE', aborting initialization.") return false return true @@ -378,7 +378,7 @@ func check_godot_version() -> bool: match(version["major"]): 4: pass _: - printerr("The CORE Framework does not support Godot versions older or newer than 4.x.x") + printerr("The CORE Framework does not support Godot versions older or newer than 4.x.x.") return false match(version["minor"]): 0: printerr("The CORE Framework does not support Godot versions older than 4.2.x. Please update to Godot 4.2.x to ensure full compatibility.") @@ -388,7 +388,7 @@ func check_godot_version() -> bool: printerr("The CORE Framework does not support Godot versions newer than 4.2.x. Please downgrade to Godot 4.2.x.") return false if version["status"] != "stable": - printerr("The CORE Framework does not support unstable Godot versions. Please switch to Godot stable 4.2.x.") + printerr("The CORE Framework does not support unstable Godot versions. Please switch to Godot 4.2.x.stable to ensure full compatibility.") return false return true