Skip to content

Conversation

@netmindz
Copy link
Member

@netmindz netmindz commented Jan 10, 2025

We have a partially implemented concept of a usermod being enabled or disabled, but we leave it to every single usermod to try and write this themselves and ensure proper checks are in place to prevent execution of code when not actually enabled and also issues like being called before they have actually been initialised.

This results in lots of usermod methods needing to start wth if(!enabled) return

This PR tries to clean this up so we maintain a list of actually which usermod are enabled so we don't keep calling loop() on disabled usermods and aims to making usermods easier by moving common logic into the UserModManager

@netmindz netmindz requested a review from softhack007 January 10, 2025 11:40
@netmindz netmindz added this to the 0.16.0 candidate milestone Jan 10, 2025
@netmindz netmindz changed the title Add name and enabled support to usermods - MM feature UserModManager only call enabled UserMods Jan 11, 2025
@netmindz netmindz marked this pull request as draft January 11, 2025 12:52
@netmindz netmindz requested a review from willmmiles January 11, 2025 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant