mirror of
				https://github.com/chibicitiberiu/rainmeter-studio.git
				synced 2024-02-24 04:33:31 +00:00 
			
		
		
		
	Added #ROOTCONFIGPATH#.
This commit is contained in:
		| @@ -129,6 +129,19 @@ void CConfigParser::SetDefaultVariables(CRainmeter* pRainmeter, CMeterWindow* me | ||||
| 		SetVariable(L"CURRENTPATH", CRainmeter::ExtractPath(m_Filename)); | ||||
| 		SetVariable(L"ADDONSPATH", pRainmeter->GetPath() + L"Addons\\"); | ||||
| 		SetVariable(L"CRLF", L"\n");		 | ||||
|  | ||||
| 		if (meterWindow) | ||||
| 		{ | ||||
| 			const std::wstring& config = meterWindow->GetSkinName(); | ||||
| 			if ((loc = config.find_first_of(L'\\')) != std::wstring::npos) | ||||
| 			{ | ||||
| 				SetVariable(L"ROOTCONFIGPATH", pRainmeter->GetSkinPath() + config.substr(0, loc + 1)); | ||||
| 			} | ||||
| 			else | ||||
| 			{ | ||||
| 				SetVariable(L"ROOTCONFIGPATH", pRainmeter->GetSkinPath() + config + L"\\"); | ||||
| 			} | ||||
| 		} | ||||
| 	} | ||||
| 	if (meterWindow) | ||||
| 	{ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 spx
					spx