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
Ste — Today at 11:59
func _check_dependencies(mod_id:String, deps:Array, dependency_chain_start := ""):
dependency_chain_start is empty by default. if it is empty, it is set to mod_id afterwards. pass it to every recursive call. if dependency_chain_start == mod_id -> circular dependency
Before this fix, it was possible to trigger an infinite loop in the dependency check if two mods declared each other as dependencies. Now, the dependency chain is tracked inside the dependency_chain array. If the same mod ID is detected, the loop will break.
closesGodotModding#111
* fix: 🐛 Added circular dependency check
Before this fix, it was possible to trigger an infinite loop in the dependency check if two mods declared each other as dependencies. Now, the dependency chain is tracked inside the dependency_chain array. If the same mod ID is detected, the loop will break.
closes#111
* refactor: 🎨 use the `in` syntax
If 2 mods depend on each other the dependency check will run into infinity.
The text was updated successfully, but these errors were encountered: