forked from mirror/openmw-tes3mp
Fixes #313: openmw without a ~/.config/openmw folder segfault.
Added creation of $HOME/.config/openmw directory. Signed-off-by: Lukasz Gromanowski <lgromanowski@gmail.com>
This commit is contained in:
parent
483b125aad
commit
1dde806add
1 changed files with 2 additions and 0 deletions
|
@ -27,6 +27,8 @@ ConfigurationManager::ConfigurationManager()
|
||||||
{
|
{
|
||||||
setupTokensMapping();
|
setupTokensMapping();
|
||||||
|
|
||||||
|
boost::filesystem::create_directories(mFixedPath.getUserPath());
|
||||||
|
|
||||||
mPluginsCfgPath = mFixedPath.getLocalPath() / pluginsCfgFile;
|
mPluginsCfgPath = mFixedPath.getLocalPath() / pluginsCfgFile;
|
||||||
if (!boost::filesystem::is_regular_file(mPluginsCfgPath))
|
if (!boost::filesystem::is_regular_file(mPluginsCfgPath))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue