Implement profiles in Launcher via custom config dirs
After !1555 (merged) we can work with profiles this way:
- Create several sub-directories in the user config dir (let's call the dir
$USERCFG
). For example$USERCFG/profiles/morrowind/
(withopenmw.cfg
for playing Morrowind) and$USERCFG/profiles/example-suite
(withopenmw.cfg
for Example Suite). - Each profile can have its own
settings.cfg
. Common settings, data dirs, and content files still can be specified in usual$USERCFG/openmw.cfg
,$USERCFG/settings.cfg
. - Add line
config=?userconfig?/profiles/morrowind
to$USERCFG/openmw.cfg
to play Morrowind. Change it toconfig=?userconfig?profiles/example-suite
to play Example Suite. - Use
user-data=?userdata?/name-of-profile
inopenmw.cfg
of a specific profile to separate saves and screenshots from other profiles.
It is more advanced profile system than what we currently have in the launcher:
- New profiles system includes data dirs and BSAs, not only the list of content files.
- In the new system different profiles can have different
settings.cfg
. - Common part of several profiles can be extracted to the main
openmw.cfg
.
Task: Use this approach to profiles in OpenMW Launcher.
Switching to the new profiles system will automatically resolve #6441 (closed).