ConfigurationManager::ConfigurationManager() : mFixedPath("openmw") { setupTokensMapping(); boost::filesystem::create_directories(mFixedPath.getUserPath()); mLogPath = mFixedPath.getUserPath(); }
ConfigurationManager::ConfigurationManager() : mFixedPath(applicationName) { setupTokensMapping(); boost::filesystem::create_directories(mFixedPath.getUserConfigPath()); boost::filesystem::create_directories(mFixedPath.getUserDataPath()); mLogPath = mFixedPath.getUserConfigPath(); }
ConfigurationManager::ConfigurationManager() : mFixedPath("openmw") { setupTokensMapping(); mPluginsCfgPath = mFixedPath.getGlobalPath() / pluginsCfgFile; if (!boost::filesystem::is_regular_file(mPluginsCfgPath)) { mPluginsCfgPath = mFixedPath.getLocalPath() / pluginsCfgFile; if (!boost::filesystem::is_regular_file(mPluginsCfgPath)) { std::cerr << "Failed to find " << pluginsCfgFile << " file!" << std::endl; mPluginsCfgPath.clear(); } } mOgreCfgPath = mFixedPath.getUserPath() / ogreCfgFile; mLogPath = mFixedPath.getUserPath(); }