Skip to content

load the plugins into libloot before every sort - #24196

Merged
IDCs merged 2 commits into
integration/gamebryofrom
task/laz-1141
Sep 17, 2026
Merged

IDCs merged 2 commits into
integration/gamebryofrom
task/laz-1141

Conversation

@IDCs

@IDCs IDCs commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Every plugin sort now runs libloot's pre-sort sequence itself, as the LOOT application does: refresh the load-order state, hold the game's main master headers-only, fully load every other plugin being sorted, then SortPlugins. Sorts no longer depend on a plugin-details pass having run first, so the Sort Now button, the ESL conversion, the health-test sort, the cycle-recovery re-sort, the VR extensions' own sorts and the sort deferred behind a deployment all stop failing with "Plugin not loaded". The lootSortAsync API drops its plugin-details pass. ADR 0001 records the decision and its costs.

fixes LAZ-1141

The sort refreshes the load-order state, holds the game's main master
headers-only and fully loads every other plugin it is asked to sort, as
the LOOT application does before each of its sorts. The lootSortAsync
api no longer runs plugin-details first. ADR 0001 records the decision.

fixes LAZ-1141
@IDCs
IDCs requested a review from a team as a code owner September 15, 2026 10:18
@IDCs IDCs self-assigned this Sep 15, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Do we really need this? ADRs are usually for major decisions, things like "what coding language to use" less "why I changed this one method". I don't think this is the right place for the doc, maybe attached to the relevant tickets but not checked into source.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Sure I'll take it out

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Counter point - this is an important change that extension developers might be interested in. Easier to have a doc than to search the code changes

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I attached the ADR to the linear ticket so we can reference it when needed. Git history will also hold the doc so it's still viewable by the public.

@IDCs
IDCs added this pull request to stack #24207 September 16, 2026 09:26
@IDCs
IDCs merged commit d0cff76 into integration/gamebryo Sep 17, 2026
3 checks passed
@IDCs
IDCs deleted the task/laz-1141 branch September 17, 2026 11:11
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.

3 participants