mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
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:
@ -121,6 +121,7 @@ public:
|
||||
const std::wstring& GetLogFile() { return m_LogFile; };
|
||||
const std::wstring& GetSkinPath() { return m_SkinPath; };
|
||||
const std::wstring& GetPluginPath() { return m_PluginPath; };
|
||||
std::wstring GetSettingsPath() { return ExtractPath(m_IniFile); };
|
||||
|
||||
const std::wstring& GetConfigEditor() { return m_ConfigEditor; };
|
||||
const std::wstring& GetStatsDate() { return m_StatsDate; };
|
||||
@ -158,6 +159,8 @@ public:
|
||||
void ExecuteCommand(const WCHAR* command, CMeterWindow* meterWindow);
|
||||
|
||||
static PLATFORM IsNT();
|
||||
static std::wstring ExtractPath(const std::wstring& strFilePath);
|
||||
static std::wstring ExpandEnvironmentVariables(const std::wstring strPath);
|
||||
|
||||
private:
|
||||
void CreateMeterWindow(std::wstring path, std::wstring config, std::wstring iniFile);
|
||||
|
Reference in New Issue
Block a user