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

fix: 🐛 circular dependency check #183

Merged

Conversation

KANAjetzt
Copy link
Member

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

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 GodotModding#111
@KANAjetzt KANAjetzt added the bug Something isn't working label Mar 24, 2023
@KANAjetzt KANAjetzt added this to the v6.0.0 milestone Mar 24, 2023
@KANAjetzt KANAjetzt requested review from ithinkandicode, Qubus0 and a team March 24, 2023 09:54
@KANAjetzt KANAjetzt changed the title fix: 🐛 Added circular dependency check fix: 🐛 circular dependency check Mar 24, 2023
Copy link
Collaborator

@Qubus0 Qubus0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lookin' good

addons/mod_loader/mod_loader.gd Outdated Show resolved Hide resolved
@KANAjetzt KANAjetzt added this pull request to the merge queue Mar 24, 2023
Merged via the queue into GodotModding:development with commit 40ae4f1 Mar 24, 2023
@KANAjetzt KANAjetzt deleted the circular_dependency_check branch March 24, 2023 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants