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 SMAPI apply order #938

Merged
merged 2 commits into from
Feb 13, 2024
Merged

Fix SMAPI apply order #938

merged 2 commits into from
Feb 13, 2024

Conversation

erri120
Copy link
Member

@erri120 erri120 commented Feb 13, 2024

Fix #930.

@erri120 erri120 added this to the v0.4 milestone Feb 13, 2024
@erri120 erri120 requested a review from a team February 13, 2024 15:22
@erri120 erri120 self-assigned this Feb 13, 2024
[SuppressMessage("ReSharper", "InconsistentNaming")]
public class SMAPISorter : IGeneratedSortRule, ISortRule<Mod, ModId>
{
public ITriggerFilter<ModId, Loadout> TriggerFilter => throw new NotImplementedException();
Copy link
Contributor

Choose a reason for hiding this comment

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

Isn't this going to be a problem? If someone actually calls the TriggerFilter in the future?

Copy link
Member Author

Choose a reason for hiding this comment

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

Nothing is calling this atm and I'm not sure how to properly implement this since there is no usage.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think the idea is that you provide a FingerPrint, if it is different from the previous one, you need to recompute the rule. I think you can return an empty fingerprint and it should never recompute it?

Copy link
Collaborator

Choose a reason for hiding this comment

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

That trigger isn't being used currently as the cost of re-generating the rules is low enough, not sure if we'll ever use it in the future.

@halgari halgari merged commit 8bd7919 into Nexus-Mods:main Feb 13, 2024
3 checks passed
@erri120 erri120 deleted the fix/930-smapi-sort branch February 13, 2024 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants