Skip to content

Load/unload profile-specified plugins#4165

Merged
alisonrag merged 1 commit intoOpenKore:masterfrom
boscv:profiles
Mar 9, 2026
Merged

Load/unload profile-specified plugins#4165
alisonrag merged 1 commit intoOpenKore:masterfrom
boscv:profiles

Conversation

@boscv
Copy link
Contributor

@boscv boscv commented Mar 9, 2026

Automatically load plugins listed in a profile's sys.txt and unload those no longer requested when switching profiles. Adds:

  • uses FileParsers::parseConfigFile
  • new %profile_extra_plugins to track plugins loaded for a profile
  • getProfileRequestedPlugins(profile) to read loadPlugins_list from profiles/*/sys.txt
  • loadMissingProfilePlugins(profile, requested) to load any requested plugins not already loaded (with warnings if missing)

Integrates loading on onStart and during profile switch (commandHandler), and unloads plugins from the old profile that aren't requested by the new profile. Emits informational/warning messages when loading/unloading or when a requested plugin is not found.

Automatically load plugins listed in a profile's sys.txt and unload those no longer requested when switching profiles. Adds:
- uses FileParsers::parseConfigFile
- new %profile_extra_plugins to track plugins loaded for a profile
- getProfileRequestedPlugins(profile) to read loadPlugins_list from profiles/*/sys.txt
- loadMissingProfilePlugins(profile, requested) to load any requested plugins not already loaded (with warnings if missing)

Integrates loading on onStart and during profile switch (commandHandler), and unloads plugins from the old profile that aren't requested by the new profile. Emits informational/warning messages when loading/unloading or when a requested plugin is not found.
@boscv
Copy link
Contributor Author

boscv commented Mar 9, 2026

Noticed that some people make the mistake of adding a sys.txt to profiles and plugins for loading there..
That won't be a problem anymore. Also useful for separating plugins per profile.

@OpenKore OpenKore deleted a comment from graveler29 Mar 9, 2026
@alisonrag
Copy link
Contributor

LGTM

@alisonrag alisonrag merged commit 41df9d2 into OpenKore:master Mar 9, 2026
9 checks passed
@boscv boscv deleted the profiles branch March 11, 2026 02:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants