handle invalid config

This commit is contained in:
Nordup 2024-10-08 23:26:20 +04:00
parent d8baa21e4e
commit 085fbb4769
4 changed files with 6 additions and 1 deletions

View file

@ -3,11 +3,12 @@ class_name ConfigBase
var config: ConfigFile
var config_path: String
var load_result: Error
func _init(path: String) -> void:
config = ConfigFile.new()
config.load(path)
load_result = config.load(path)
config_path = path