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

Replace mod exclusions URL with a constant #1208

Merged
merged 1 commit into from
Feb 11, 2024

Conversation

MythicManiac
Copy link
Collaborator

Replace the mod exclusions list URL with a constant as the same value is used for all the games.

This could perhaps be moved to the game definition directly, but that would need a larger change than this commit is intended as.

Merge #1079 first!

Copy link
Owner

@ebkr ebkr left a comment

Choose a reason for hiding this comment

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

I think the diff is slightly off here

Ignore, just saw the note to merge the other PR first 👀

}
} else {
if ((await fs.lstat(path.join(profile.getPathOfProfile(), file))).isDirectory()) {
if (!["bepinex", "bepinex_server", "mods", "melonloader", "plugins", "userdata", "_state", "userlibs", "qmods"].includes(file.toLowerCase())) {
const exclusionsList = [
Copy link
Owner

Choose a reason for hiding this comment

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

You could declare this at the top of the file outside of the class if that's easier. It wouldn't need to be recreated every time this is hit.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This was a part of #1079 but yeah agreed, didn't end up making it a blocker however.

Replace the mod exclusions list URL with a constant as the same value is
used for all the games.

This could perhaps be moved to the game definition directly, but that
would need a larger change than this commit is intended as.
@ebkr ebkr merged commit bd1f493 into ebkr:develop Feb 11, 2024
1 check passed
@ebkr ebkr deleted the cleanup branch February 11, 2024 16:59
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