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

Change the icon paths used when reading a mod list from mods.yml #1504

Merged
merged 2 commits into from
Oct 30, 2024

Conversation

anttimaki
Copy link
Collaborator

@anttimaki anttimaki commented Oct 22, 2024

The old implementation had a comment mentioning BepInEx icon can be
read only from the cache, yet the code immediately tried to read it
from another location. Based on a sampling on 10 BepInEx games, none
actually contained the icon in the path that was used.

To simplify things, try to read the icon from the default location used
by BepInEx plugins, and fall back to reading the icon from cache. This
still isn't ideal, since cleaning the cache (by manually deleting the
contents) breaks all icons relying on the cache, but fixing this to
support all possible mod loaders is more than I'm willing to tackle
right now.

The old implementation had a comment mentioning BepInEx icon can be
read only from the cache, yet the code immediately tried to read it
from another location. Based on a sampling on 10 BepInEx games, none
actually contained the icon in the path that was used.

To simplify things, try to read the icon from the default location used
by BepInEx plugins, and fall back to reading the icon from cache. This
still isn't ideal, since cleaning the cache (by manually deleting the
contents) breaks all icons relying on the cache, but fixing this to
support all possible mod loaders is more than I'm willing to tackle
right now.
@anttimaki anttimaki requested a review from ebkr October 22, 2024 13:50
@anttimaki anttimaki merged commit 3f09e69 into develop Oct 30, 2024
5 checks passed
@anttimaki anttimaki deleted the profilemodlist-icon branch October 30, 2024 07:30
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