user://panku_config.cfg file exists, that is used as the config dictionary
If the user config file does not exist (for example, for first-time users), then use res://addons/panku_console/panku_default_config.cfg (which can be changed in project settings) as the config dictionary.
The plugin will always get a config dictionary, whether the config files exist or not.
If there's no corresponding key-value pair in the config dictionary, the default value in the function call will be used.
Note:
The user config file (which is located at user://) will always be created after the program starts, the default config file (located at res://) is in fact simply a read-only and for one use only template file.
closes https://github.com/Ark2000/PankuConsole/issues/173
Expected Behavior:
user://panku_config.cfg
file exists, that is used as the config dictionaryres://addons/panku_console/panku_default_config.cfg
(which can be changed in project settings) as the config dictionary.Note: The user config file (which is located at
user://
) will always be created after the program starts, the default config file (located atres://
) is in fact simply a read-only and for one use only template file.