Skip to content

Add fabric.configFolder system property to set mod config path - #1082

Open
williambl wants to merge 1 commit into
FabricMC:masterfrom
williambl:configurable-config-dir
Open

Add fabric.configFolder system property to set mod config path#1082
williambl wants to merge 1 commit into
FabricMC:masterfrom
williambl:configurable-config-dir

Conversation

@williambl

Copy link
Copy Markdown

Super quick implementation of the first/main part (i.e. not 'Further options') of #1081.

I'm not sure if this is worth writing tests for?

Comment thread src/main/java/net/fabricmc/loader/impl/util/SystemProperties.java Outdated
As the logic of the new `getConfigDirectory0` function is very similar to the existing `getModsDirectory0`, I abstracted them both into `getConfiguredOrRelativeDirectory`, which I honestly didn't name very well, which retrieves a path from a system property or, as a fallback, as a predefined path relative to the game directory.
@williambl
williambl force-pushed the configurable-config-dir branch from 40f024c to fdd61ba Compare March 16, 2026 15:34
@williambl
williambl requested a review from Player3324 August 20, 2026 12:48
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