Fixed that %APPDATA%\Rainmeter was not created on first launch due to 4647c44

This commit is contained in:
Birunthan Mohanathas 2012-06-25 10:29:50 +03:00
parent 99b8976760
commit c78aad0474

View File

@ -799,12 +799,6 @@ int CRainmeter::Initialize(LPCWSTR iniPath)
const WCHAR* iniFile = m_IniFile.c_str();
// Create a default Rainmeter.ini file if needed
if (_waccess(iniFile, 0) == -1)
{
CreateOptionsFile();
}
// Set file locations
{
m_SettingsPath = ExtractPath(m_IniFile);
@ -822,6 +816,12 @@ int CRainmeter::Initialize(LPCWSTR iniPath)
m_DataFile += L".data";
}
// Create a default Rainmeter.ini file if needed
if (_waccess(iniFile, 0) == -1)
{
CreateOptionsFile();
}
bool dataFileCreated = false;
if (_waccess(m_DataFile.c_str(), 0) == -1)
{