GodotModding / GodotModding/godot-mod-loader

Mod Config: API Method to duplicate a config

Open
#490 0 comments 0 reactions 1 assignee Claimed by @KANAjetzt View on GitHub
3.x 4.x enhancement
Dominant language
GDScript
Stars
675
Forks
54
Avg merge
2m
Merged PRs (30d)
2

Description

A method to duplicate an existing config (in most cases the default config) would simplify the creation of a modifiable config since the default config is read-only.

For example:
`duplicate_config(config: ModConfig, config_name: String) -> ModConfig:`

can be called as:
`ModLoaderConfig.duplicate_config(ModLoaderConfig.get_default_config(MOD_ID), "custom")`

https://github.com/GodotModding/godot-mod-loader/blob/aab3aaa089f75404f07dd790aa193bb430a5582a/addons/mod_loader/api/config.gd#L12-L69

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.