mirror of
https://github.com/thegatesbrowser/thegates.git
synced 2025-08-24 02:17:27 -04:00
handle invalid config
This commit is contained in:
parent
d8baa21e4e
commit
085fbb4769
4 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue