Add #ROOTCONFIG# variable

This commit is contained in:
Birunthan Mohanathas
2013-09-15 15:05:06 +03:00
parent 8b68092cf1
commit 08eb662e1f
3 changed files with 13 additions and 0 deletions

View File

@ -4841,6 +4841,17 @@ std::wstring MeterWindow::GetFilePath()
return file;
}
std::wstring MeterWindow::GetRootName()
{
std::wstring::size_type loc;
if ((loc = m_FolderPath.find_first_of(L'\\')) != std::wstring::npos)
{
return m_FolderPath.substr(0, loc);
}
return m_FolderPath;
}
std::wstring MeterWindow::GetRootPath()
{
std::wstring path = GetRainmeter().GetSkinPath();