#PROGRAMPATH# and #ADDONSPATH# returned incorrect value if the ini file was given as a command line argument. Fixed.

This commit is contained in:
Kimmo Pekkola 2009-08-03 22:21:56 +00:00
parent a77846d338
commit 9654dc21ae
2 changed files with 2 additions and 3 deletions

View File

@ -671,9 +671,9 @@ int CRainmeter::Initialize(HWND Parent, HINSTANCE Instance, LPCSTR szPath)
bool bDefaultIniLocation = false;
m_Path = tmpName;
if (c_CmdLine.empty())
{
m_Path = tmpName;
m_IniFile = m_Path + L"Rainmeter.ini";
// If the ini file doesn't exist in the program folder store it to the %APPDATA% instead so that things work better in Vista/Win7
@ -709,7 +709,6 @@ int CRainmeter::Initialize(HWND Parent, HINSTANCE Instance, LPCSTR szPath)
iniFile += L"\\Rainmeter.ini";
}
m_Path = ExtractPath(iniFile);
m_IniFile = iniFile;
// If the ini file doesn't exist in the %APPDATA% either, create a default rainmeter.ini file.

View File

@ -1,2 +1,2 @@
#pragma once
const int revision_number = 137;
const int revision_number = 139;