mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Minor fix
This commit is contained in:
parent
b633d64ad1
commit
34d7fc4add
@ -833,6 +833,11 @@ bool CDialogInstall::InstallPackage()
|
|||||||
}
|
}
|
||||||
while (unzGoToNextFile(m_PackageUnzFile) == UNZ_OK);
|
while (unzGoToNextFile(m_PackageUnzFile) == UNZ_OK);
|
||||||
|
|
||||||
|
if (!m_MergeSkins && m_BackupSkins)
|
||||||
|
{
|
||||||
|
KeepVariables();
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -996,7 +1001,8 @@ void CDialogInstall::KeepVariables()
|
|||||||
std::wstring fromPath = g_Data.skinsPath + L"@Backup\\";
|
std::wstring fromPath = g_Data.skinsPath + L"@Backup\\";
|
||||||
fromPath += m_VariablesFiles[i];
|
fromPath += m_VariablesFiles[i];
|
||||||
std::wstring toPath = g_Data.skinsPath + m_VariablesFiles[i];
|
std::wstring toPath = g_Data.skinsPath + m_VariablesFiles[i];
|
||||||
|
MessageBox(NULL, fromPath.c_str(), L"TEST!", MB_OK | MB_TOPMOST);
|
||||||
|
MessageBox(NULL, toPath.c_str(), L"TEST!", MB_OK | MB_TOPMOST);
|
||||||
unsigned int count = GetPrivateProfileSection(L"Variables", keyname, 32767, fromPath.c_str());
|
unsigned int count = GetPrivateProfileSection(L"Variables", keyname, 32767, fromPath.c_str());
|
||||||
|
|
||||||
if ((_waccess(fromPath.c_str(), 0) == 0) && (_waccess(toPath.c_str(), 0) == 0)
|
if ((_waccess(fromPath.c_str(), 0) == 0) && (_waccess(toPath.c_str(), 0) == 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user