From 1dde806addefa39bd4779b7e3c4954b355fc7c69 Mon Sep 17 00:00:00 2001 From: Lukasz Gromanowski Date: Sun, 22 Jul 2012 14:52:55 +0300 Subject: [PATCH] Fixes #313: openmw without a ~/.config/openmw folder segfault. Added creation of $HOME/.config/openmw directory. Signed-off-by: Lukasz Gromanowski --- components/files/configurationmanager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/files/configurationmanager.cpp b/components/files/configurationmanager.cpp index 150a4fcd88..dee51b0c15 100644 --- a/components/files/configurationmanager.cpp +++ b/components/files/configurationmanager.cpp @@ -27,6 +27,8 @@ ConfigurationManager::ConfigurationManager() { setupTokensMapping(); + boost::filesystem::create_directories(mFixedPath.getUserPath()); + mPluginsCfgPath = mFixedPath.getLocalPath() / pluginsCfgFile; if (!boost::filesystem::is_regular_file(mPluginsCfgPath)) {