Fixes #313: openmw without a ~/.config/openmw folder segfault.

Added creation of $HOME/.config/openmw directory.

Signed-off-by: Lukasz Gromanowski <lgromanowski@gmail.com>
pull/21/head
Lukasz Gromanowski 13 years ago
parent 483b125aad
commit 1dde806add

@ -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…
Cancel
Save