+wxFileConfig::wxFileConfig(const char *szAppName, bool bLocalOnly)
+{
+ wxASSERT( !IsEmpty(szAppName) ); // invent a name for your application!
+
+ m_strLocalFile = GetLocalFileName(szAppName);
+ if ( !bLocalOnly )
+ m_strGlobalFile = GetGlobalFileName(szAppName);
+ //else: it's going to be empty and we won't use the global file
+
+ Init();
+}
+
+wxFileConfig::wxFileConfig(const wxString& strLocal, const wxString& strGlobal)
+ : m_strLocalFile(strLocal), m_strGlobalFile(strGlobal)
+{
+ // if the path is not absolute, prepend the standard directory to it
+ if ( !strLocal.IsEmpty() && !wxIsAbsolutePath(strLocal) )
+ {
+ m_strLocalFile = GetLocalDir();
+ m_strLocalFile << strLocal;
+ }
+
+ if ( !strGlobal.IsEmpty() && !wxIsAbsolutePath(strGlobal) )
+ {
+ m_strGlobalFile = GetGlobalDir();
+ m_strGlobalFile << strGlobal;
+ }
+
+ Init();
+}
+
+void wxFileConfig::CleanUp()