Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: ✨ Config JSON: Swap status codes 1 and 2 (closes #131) #137

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions addons/mod_loader/mod_loader.gd
Original file line number Diff line number Diff line change
Expand Up @@ -677,9 +677,9 @@ func save_scene(modified_scene: Node, scene_path: String) -> void:

enum MLConfigStatus {
OK, # 0 = No errors
INVALID_MOD_ID, # 1 = Invalid mod ID
NO_JSON_OK, # 2 = No custom JSON. File probably does not exist. Defaults will be used if available
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`)
NO_JSON_OK, # 1 = No custom JSON (file probably does not exist). Uses defaults from manifest, if available
INVALID_MOD_ID, # 2 = Invalid mod ID
NO_JSON_INVALID_KEY, # 3 = Invalid key, and no custom JSON was specified in the manifest defaults (`extra.godot.config_defaults`)
INVALID_KEY # 4 = Invalid key, although config data does exists
}

Expand Down