The relative coordinates got broken by the previous changes. They should be fixed now.

Changed the meter bangs to case insensitive.
This commit is contained in:
Kimmo Pekkola
2009-09-19 07:15:28 +00:00
parent fa6d437a71
commit 71c1d052a7
4 changed files with 16 additions and 22 deletions

View File

@ -63,6 +63,7 @@ void CConfigParser::Initialize(LPCTSTR filename, CRainmeter* pRainmeter)
m_Measures.clear();
m_Keys.clear();
m_Values.clear();
m_Sections.clear();
// Set the default variables. Do this before the ini file is read so that the paths can be used with @include
if (pRainmeter)
@ -506,6 +507,7 @@ void CConfigParser::ReadIniFile(const std::wstring& iniFile, int depth)
if (m_Keys.find(strTmp) == m_Keys.end())
{
m_Keys[strTmp] = std::vector<std::wstring>();
m_Sections.push_back(pos);
}
pos = pos + wcslen(pos) + 1;
}
@ -622,17 +624,9 @@ const std::wstring& CConfigParser::GetValue(const std::wstring& strSection, cons
**
** \return A list of sections in the ini file.
*/
std::vector<std::wstring> CConfigParser::GetSections()
const std::vector<std::wstring>& CConfigParser::GetSections()
{
std::vector<std::wstring> listSections;
stdext::hash_map<std::wstring, std::vector<std::wstring> >::iterator iter = m_Keys.begin();
for ( ; iter != m_Keys.end(); iter++)
{
listSections.push_back((*iter).first);
}
return listSections;
return m_Sections;
}
//==============================================================================