Some of the plugins don't work with the dynamic variables so the feature is now disabled for them.

This commit is contained in:
Kimmo Pekkola
2009-08-26 19:29:49 +00:00
parent 9cf291517a
commit ffdec7be65
5 changed files with 7 additions and 6 deletions

View File

@ -129,7 +129,7 @@ void CConfigParser::SetVariable(const std::wstring& strVariable, const std::wstr
**
**
*/
const std::wstring& CConfigParser::ReadString(LPCTSTR section, LPCTSTR key, LPCTSTR defValue)
const std::wstring& CConfigParser::ReadString(LPCTSTR section, LPCTSTR key, LPCTSTR defValue, bool bReplaceMeasures)
{
static std::wstring result;
@ -194,7 +194,7 @@ const std::wstring& CConfigParser::ReadString(LPCTSTR section, LPCTSTR key, LPCT
} while(loop);
// Check for measures ([Measure])
if (!m_Measures.empty())
if (!m_Measures.empty() && bReplaceMeasures)
{
start = 0;
end = std::wstring::npos;