gdquest-demos/godot-3-demos

Error in final/11-Save settings with ConfigFile/Settings.gd

redam opened this issue · 2 comments

redam commented

Hello,

I think there's an error in the load_settings() function :
var val = _settings[section][key]
Shouldn't it be :
var val = _config_file.get_value(section,key)

By the way, the "values" array in the same function seems to be useless too.

Thank you very much for all your videos on Youtube, they are all of a great help for someone trying to understand and use godot :)

redam commented

Oops, and we also need :
_settings[section][key] = val
Or else _settings will never contains what we have loaded from the config file.

Thanks, fixed be8a3b5