Add 'modsPath' optional setting - #243
Closed
eduardogarre wants to merge 1 commit into
Closed
Conversation
The default behavior looks for mod folders inside the ArmA3 folder path. With this commit I add an optional setting inside 'config.js', named .modsPath, which allows you to set a different path to your mods folder. If the setting is not set inside the 'config.js' file, .modsPath value will default to the value of .path (the path to your ArmA3 folder).
Author
|
I've just found the previous PRs on this, I'll check all of that before coming up with a new PR. Sorry |
Owner
|
I think the main problem with it is cross platform support for Linux. #156 would solve most such scenarios though. The other option would be to throw an error. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Currently, the default behavior of the application looks for mod files exclusively inside the Game folder path, by using the value inside config.path. With this commit I add an optional setting inside 'config.js', named .modsPath, which allows you to set a different path to your mods folder.
With the value of .modsPath set to a valid folder, the application will look for your mod files exclusively inside that alternative route.
In order to preserve compatibility with the previous behavior, if the config.modsPath value is empty of undefine inside the 'config.js' file, config.modsPath value will default to the value of config.path (the path to your ArmA3 folder).