Skip to content

Pass basePath as Path during path filtering#70

Merged
marchermans merged 3 commits intoMcModLauncher:mainfrom
shartte:path-filter
Apr 25, 2024
Merged

Pass basePath as Path during path filtering#70
marchermans merged 3 commits intoMcModLauncher:mainfrom
shartte:path-filter

Conversation

@shartte
Copy link
Copy Markdown
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
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