Field lists for tokens
Some checks failed
Build and test / Ubuntu (push) Has been cancelled
Build and test / MacOS (push) Has been cancelled
Build and test / Read .env file and expose it as output (push) Has been cancelled
Build and test / Windows (2019) (push) Has been cancelled
Build and test / Windows (2022) (push) Has been cancelled

This commit is contained in:
AnyOldName3 2025-04-26 19:09:59 +01:00
parent cbf0760adf
commit 897b502b0f

View file

@ -166,44 +166,45 @@ Relative paths are **relative to the** ``openmw.cfg`` **file they're in**, or th
Tokens are used to access platform-dependent paths where OpenMW can store specific kinds of data. Tokens are used to access platform-dependent paths where OpenMW can store specific kinds of data.
The available tokens are ``?local?``, ``?userconfig?``, ``?userdata?`` and ``?global?``. The available tokens are ``?local?``, ``?userconfig?``, ``?userdata?`` and ``?global?``.
Tokens are used in the `Default paths`_.
``?local?`` is the directory where the OpenMW binary is installed, except on MacOS, where it's the ``Resources`` directory inside the bundle. :``?local?``: The directory where the OpenMW binary is installed, except on MacOS, where it's the ``Resources`` directory inside the bundle.
``?userconfig?`` depends on the platform: :``?userconfig?``: Platform-dependent:
+--------------+-----------------------------------------------------------+ +--------------+-----------------------------------------------------------+
| OS | Location | | OS | Location |
+==============+===========================================================+ +==============+===========================================================+
| Linux | ``$XDG_CONFIG_HOME/openmw/`` or ``$HOME/.config/openmw/`` | | Linux | ``$XDG_CONFIG_HOME/openmw/`` or ``$HOME/.config/openmw/`` |
+--------------+-----------------------------------------------------------+ +--------------+-----------------------------------------------------------+
| Mac | ``$HOME/Library/Preferences/openmw/`` | | Mac | ``$HOME/Library/Preferences/openmw/`` |
+--------------+-----------------------------------------------------------+ +--------------+-----------------------------------------------------------+
| Windows | ``Documents\My Games\OpenMW\`` | | Windows | ``Documents\My Games\OpenMW\`` |
+--------------+-----------------------------------------------------------+ +--------------+-----------------------------------------------------------+
``?userdata?`` depends on the platform: :``?userdata?``: Platform-dependent:
+--------------+--------------------------------------------------------------+ +--------------+--------------------------------------------------------------+
| OS | Location | | OS | Location |
+==============+==============================================================+ +==============+==============================================================+
| Linux | ``$XDG_DATA_HOME/openmw/`` or ``$HOME/.local/share/openmw/`` | | Linux | ``$XDG_DATA_HOME/openmw/`` or ``$HOME/.local/share/openmw/`` |
+--------------+--------------------------------------------------------------+ +--------------+--------------------------------------------------------------+
| Mac | ``$HOME/Library/Application Support/openmw/`` | | Mac | ``$HOME/Library/Application Support/openmw/`` |
+--------------+--------------------------------------------------------------+ +--------------+--------------------------------------------------------------+
| Windows | ``Documents\My Games\OpenMW\`` | | Windows | ``Documents\My Games\OpenMW\`` |
+--------------+--------------------------------------------------------------+ +--------------+--------------------------------------------------------------+
``?global?`` depends on the platform: :``?global?``: Platform-dependent:
+--------------+-------------------------------------------------------------------+ +--------------+-------------------------------------------------------------------+
| OS | Location | | OS | Location |
+==============+===================================================================+ +==============+===================================================================+
| Linux | Chosen by the downstream packager, typically ``/usr/share/games`` | | Linux | Chosen by the downstream packager, typically ``/usr/share/games`` |
+--------------+-------------------------------------------------------------------+ +--------------+-------------------------------------------------------------------+
| Mac | ``/Library/Application Support/`` | | Mac | ``/Library/Application Support/`` |
+--------------+-------------------------------------------------------------------+ +--------------+-------------------------------------------------------------------+
| Windows | Not applicable | | Windows | Not applicable |
+--------------+-------------------------------------------------------------------+ +--------------+-------------------------------------------------------------------+
Examples Examples
-------- --------