aboutsummaryrefslogtreecommitdiff
path: root/src/configmanagerbase.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/configmanagerbase.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/configmanagerbase.cpp b/src/configmanagerbase.cpp
index 4b94cc6..cf7eb3e 100644
--- a/src/configmanagerbase.cpp
+++ b/src/configmanagerbase.cpp
@@ -17,13 +17,13 @@ void ConfigManagerBase::addSearchPath( const std::string &sPath )
17 lSearchPath.push_back( sPath ); 17 lSearchPath.push_back( sPath );
18} 18}
19 19
20void ConfigManagerBase::loadConfig( const char *lpProfile ) 20void ConfigManagerBase::loadConfig( const std::string &sFileName, const char *lpProfile )
21{ 21{
22 // Try a few locations... 22 // Try a few locations...
23 std::list<std::string>::const_iterator i; 23 std::list<std::string>::const_iterator i;
24 for( i = lSearchPath.begin(); i != lSearchPath.end(); i++ ) 24 for( i = lSearchPath.begin(); i != lSearchPath.end(); i++ )
25 { 25 {
26 if( parseConfig( (*i).c_str(), lpProfile ) ) 26 if( parseConfig( (*i+sFileName).c_str(), lpProfile ) )
27 { 27 {
28 break; 28 break;
29 } 29 }