Add --loot-data-path parameter to LOOT

It sets the path used for LOOT's local application data storage,
overriding the default (%LOCALAPPDATA%\LOOT on Windows).
Closes #700.
This commit is contained in:
Oliver Hamlet
2016-11-19 12:00:28 +00:00
parent 50035cca90
commit 769f3dd313
9 changed files with 69 additions and 39 deletions
+7 -1
View File
@@ -4,7 +4,13 @@ Initialisation
When LOOT is run, it will attempt to detect which of the supported games are installed. If a :ref:`default game <default-game>` has been set, LOOT will run for it, otherwise it will run for the same game as it last ran for. If the relevant game cannot be detected, or if there is no record of the last game LOOT ran for, it will run for the first detected game.
LOOT can also be launched with the ``--game=<game folder name>`` command line parameter to set the game to run for. If the supplied game folder name is valid, the default and last game values are ignored. The default folder names are ``Oblivion``, ``Skyrim``, ``Fallout3``, ``FalloutNV`` and ``Fallout4``.
LOOT's initialisation can be customised using command line parameters:
``--game=<game folder name>``:
Set the game to run for. If the supplied game folder name is valid, the default and last game values are ignored. The default folder names are ``Oblivion``, ``Skyrim``, ``Fallout3``, ``FalloutNV`` and ``Fallout4``.
``--loot-data-path=<path>``:
Set the path to use for LOOT's application data storage. If this is an empty string or not specified, defaults to ``%LOCALAPPDATA%\LOOT`` on Windows and (in order of decreasing preference) ``$XDG_CONFIG_HOME/LOOT``, ``$HOME/.config/LOOT`` or the current path on Linux.
If LOOT cannot detect any supported game installs, it will immediately open the :doc:`Settings dialog <settings>`. There you can edit LOOTs settings to provide a path to a supported game, after which you can select it from the game menu.