diff --git a/app/scripts/loading/config_gate.gd b/app/scripts/loading/config_gate.gd index 22d07a7..f00cc75 100644 --- a/app/scripts/loading/config_gate.gd +++ b/app/scripts/loading/config_gate.gd @@ -21,6 +21,12 @@ var libraries: PackedStringArray func _init(path: String, base_url: String) -> void: super._init(path) + + if not SECTION in get_sections(): + Debug.logclr("Invalid gate config file: don't have section " + SECTION, Color.YELLOW) + load_result = ERR_INVALID_DATA + return + title = get_string(SECTION, KEY_TITLE) description = get_string(SECTION, KEY_DESCRIPTION) icon_url = Url.join(base_url, get_string(SECTION, KEY_ICON)) diff --git a/app/scripts/ui/world/loading_status.gd b/app/scripts/ui/world/loading_status.gd index be430ad..40840ef 100644 --- a/app/scripts/ui/world/loading_status.gd +++ b/app/scripts/ui/world/loading_status.gd @@ -119,7 +119,7 @@ func on_gate_error(code: GateEvents.GateError) -> void: GateEvents.GateError.NOT_FOUND: set_progress("Gate not found", ProgressStatus.ERROR) GateEvents.GateError.INVALID_CONFIG: - set_progress("Invalid gate config", ProgressStatus.ERROR) + set_progress("Gate not found", ProgressStatus.ERROR) GateEvents.GateError.MISSING_PACK, GateEvents.GateError.MISSING_LIBS: set_progress("Cannot load gate resources", ProgressStatus.ERROR) _: