New build in variables: #PROGRAMPATH#, #SETTINGSPATH#, #SKINSPATH#, #PLUGINSPATH#, #ADDONSPATH# and #CURRENTPATH# (this is the path where the ini file that is currently read is located).

If there is a file called Default.ini in the program folder it will be used as the default settings file for new users.
The location of the settings file (rainmeter.ini) can be defined as a command line argument.
This commit is contained in:
Kimmo Pekkola
2009-07-26 21:08:46 +00:00
parent aa97805f6b
commit bded6e6fc7
7 changed files with 135 additions and 52 deletions

View File

@ -375,12 +375,7 @@ HINSTANCE ExecuteCommand(HWND Owner, LPCTSTR szCommand, int nShowCmd, LPCTSTR sz
return instance;
}
std::wstring dir;
size_t dirPos = command.rfind(L"\\");
if (dirPos != std::wstring::npos)
{
dir = command.substr(0, dirPos);
}
std::wstring dir = CRainmeter::ExtractPath(command);
SHELLEXECUTEINFO si;
memset(&si, 0, sizeof(si));