mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Fixed that %APPDATA%\Rainmeter was not created on first launch due to 4647c44
This commit is contained in:
parent
99b8976760
commit
c78aad0474
@ -799,12 +799,6 @@ int CRainmeter::Initialize(LPCWSTR iniPath)
|
|||||||
|
|
||||||
const WCHAR* iniFile = m_IniFile.c_str();
|
const WCHAR* iniFile = m_IniFile.c_str();
|
||||||
|
|
||||||
// Create a default Rainmeter.ini file if needed
|
|
||||||
if (_waccess(iniFile, 0) == -1)
|
|
||||||
{
|
|
||||||
CreateOptionsFile();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Set file locations
|
// Set file locations
|
||||||
{
|
{
|
||||||
m_SettingsPath = ExtractPath(m_IniFile);
|
m_SettingsPath = ExtractPath(m_IniFile);
|
||||||
@ -822,6 +816,12 @@ int CRainmeter::Initialize(LPCWSTR iniPath)
|
|||||||
m_DataFile += L".data";
|
m_DataFile += L".data";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Create a default Rainmeter.ini file if needed
|
||||||
|
if (_waccess(iniFile, 0) == -1)
|
||||||
|
{
|
||||||
|
CreateOptionsFile();
|
||||||
|
}
|
||||||
|
|
||||||
bool dataFileCreated = false;
|
bool dataFileCreated = false;
|
||||||
if (_waccess(m_DataFile.c_str(), 0) == -1)
|
if (_waccess(m_DataFile.c_str(), 0) == -1)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user