Skip to content

feat: add flush and reloadFromDisk to IPluginList - #189

Open
Illustar0 wants to merge 1 commit into
ModOrganizer2:masterfrom
Illustar0:feat/plugin-list-flush-reload
Open

Illustar0 wants to merge 1 commit into
ModOrganizer2:masterfrom
Illustar0:feat/plugin-list-flush-reload

Conversation

@Illustar0

@Illustar0 Illustar0 commented Oct 26, 2026 •

Copy link
Copy Markdown

- Add IPluginList::flush(), which writes the pending changes to the plugin lists right away, the same way MO2 does, and returns false when they cannot be written, e.g. during a directory refresh
- Add IPluginList::reloadFromDisk(), which reads the plugin list files again, discards the changes not written yet and calls onRefreshed once done
- Declare both last in IPluginList so that the vtable slots of the existing functions keep their positions
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.

1 participant