Changeset 3012
- Timestamp:
- 07/30/06 13:36:58 (2 years ago)
- Files:
-
- hydranode/hncore/hydranode.cpp (modified) (2 diffs)
- hydranode/hncore/hydranode.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
hydranode/hncore/hydranode.cpp
r3001 r3012 196 196 // directory and hidden subdir ".hydranode" there, as is standard on 197 197 // those platforms. 198 void Hydranode::initConfig( ) {198 void Hydranode::initConfig(const std::string &customConfDir) { 199 199 using boost::filesystem::path; 200 200 using boost::filesystem::native; 201 201 202 if (m_confDir.empty() ) {202 if (m_confDir.empty() && customConfDir.empty()) { 203 203 path confdir; 204 204 … … 224 224 #endif 225 225 m_confDir = confdir; 226 } 226 } else if (!customConfDir.empty()) { 227 m_confDir = path(customConfDir, native); 228 } 229 227 230 m_confDir = checkCreateDir(m_confDir, "config"); 228 231 hydranode/hncore/hydranode.h
r3001 r3012 217 217 //! @name Various initialization functions 218 218 //@{ 219 void initConfig(); 219 /** 220 * Initializes configuration. The directory where configuration will 221 * be stored can be set from commandline (-c argument) or 222 * programmatically by passing the path here. Note that commandline 223 * always overrides programmatically set directory. 224 */ 225 void initConfig(const std::string &path = ""); 220 226 void initLog(); 221 227 void initSockets();
