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

Pass basePath as Path during path filtering #70

Merged
merged 3 commits into from
Apr 25, 2024

Conversation

shartte
Copy link
Contributor

@shartte shartte commented Apr 20, 2024

We're using the path filter mostly for filtering out resources / class from Minecraft jars.
The basePath is important to unconditionally include certain resources from specific basepaths of the union filesystem (client-extra jar). Not having to do string matching on the basepath makes this more robust.

p.s.: This change is also motivated by SJH normalizing the base path such that it becomes a relative path, but only on Linux.
So, /tmp/blah.jar becomes tmp/blah.jar.

@marchermans marchermans merged commit 312eb11 into McModLauncher:main Apr 25, 2024
1 check passed
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