You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* `get_mod_config` - fix missing space in log string
* `get_mod_config` - log improvements
- Generally improve log messages, giving them better user notices that are more accurate to the current issue.
- Use assert for cases where there are definite code errors that need addressing (eg. an invalid mod ID)
* `get_mod_config` - use enums for the error codes
* `get_mod_config` - rename "error" (eg. "error code") to "status"
* `get_mod_config` - remove a redundant bit of text
NO_JSON_OK, # 2 = No custom JSON. File probably does not exist. Defaults will be used if available
543
+
NO_JSON_INVALID_KEY, # 3 = No custom JSON, and key was invalid when trying to get the default from your manifest defaults (`extra.godot.config_defaults`)
544
+
INVALID_KEY# 4 = Invalid key, although config data does exists
545
+
}
546
+
539
547
# Get the config data for a specific mod. Always returns a dictionary with two
540
548
# keys: `error` and `data`.
541
549
# Data (`data`) is either the full config, or data from a specific key if one was specified.
542
550
# Error (`error`) is 0 if there were no errors, or > 0 if the setting could not be retrieved:
543
-
# 0 = No errors
544
-
# 1 = Invalid mod ID
545
-
# 2 = No custom JSON. File probably does not exist. Defaults will be used if available
546
-
# 3 = No custom JSON, and key was invalid when trying to get the default from your manifest defaults (`extra.godot.config_defaults`)
547
-
# 4 = Invalid key, although config data does exists
0 commit comments