FabricMC / fabric-loader

Fabric's mostly-version-independent mod loader.
Apache License 2.0
632 stars 269 forks source link

Add Property for recursive mod loading #994

Open notTamion opened 2 weeks ago

notTamion commented 2 weeks ago

fixes #81 This pr adds the -Dfabric.loadModsRecursively system property which will cause the default mods folder to be loaded recursively. Paths containing "disabled" are ignored. This way we don't break existing setups which use a subfolder with any name to make sure mods are not loaded but provide users with an option to easily categorize their mods

notTamion commented 2 weeks ago

Yes, however the addMods property does not allow you to easily disable entire folders without having to rename all the files or moving them outside the mod folder completetly, also having the mods folder scanned twice feels rather hacky to me. If you don't want to add another property for this we could still check the paths for "disabled" in ArgumentModCandidateFinder

sfPlayer1 commented 2 weeks ago

Maybe I just just add a path filter regex or so -_-