From 34d7fc4addb2709e46f1f03d5c9cbdf72a754e5b Mon Sep 17 00:00:00 2001 From: Birunthan Mohanathas Date: Sun, 17 Jun 2012 20:16:03 +0300 Subject: [PATCH] Minor fix --- SkinInstaller/DialogInstall.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/SkinInstaller/DialogInstall.cpp b/SkinInstaller/DialogInstall.cpp index 1ea1a965..5afa1f06 100644 --- a/SkinInstaller/DialogInstall.cpp +++ b/SkinInstaller/DialogInstall.cpp @@ -833,6 +833,11 @@ bool CDialogInstall::InstallPackage() } while (unzGoToNextFile(m_PackageUnzFile) == UNZ_OK); + if (!m_MergeSkins && m_BackupSkins) + { + KeepVariables(); + } + return true; } @@ -996,7 +1001,8 @@ void CDialogInstall::KeepVariables() std::wstring fromPath = g_Data.skinsPath + L"@Backup\\"; fromPath += 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()); if ((_waccess(fromPath.c_str(), 0) == 0) && (_waccess(toPath.c_str(), 0) == 0)