summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/mim.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-01-19 12:14:01 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-01-19 12:14:01 +0000
commitbd3888b24a17f351cf4f884462e3135b6f87e876 (patch)
tree6c70a04f47bd330e5a44084545cc0d2c90881140 /plugins/TabSRMM/src/mim.cpp
parent085b45f2920353f055b036c00ebb27fb1b8148e9 (diff)
reverted Folders support for tabSRMM
git-svn-id: http://svn.miranda-ng.org/main/trunk@7754 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/mim.cpp')
-rw-r--r--plugins/TabSRMM/src/mim.cpp19
1 files changed, 3 insertions, 16 deletions
diff --git a/plugins/TabSRMM/src/mim.cpp b/plugins/TabSRMM/src/mim.cpp
index 9ecc0dd3cd..c96fe0a2ab 100644
--- a/plugins/TabSRMM/src/mim.cpp
+++ b/plugins/TabSRMM/src/mim.cpp
@@ -207,12 +207,6 @@ INT_PTR CMimAPI::foldersPathChanged()
FoldersGetCustomPathT(m_hSkinsPath, szTemp, MAX_PATH, const_cast<TCHAR *>(getSkinPath()));
mir_sntprintf(m_szSkinsPath, MAX_PATH - 1, _T("%s"), szTemp);
-
- /*
- * make sure skins root path always ends with a '\' - this is assumed by the skin
- * selection code.
- */
-
Utils::ensureTralingBackslash(m_szSkinsPath);
FoldersGetCustomPathT(m_hAvatarsPath, szTemp, MAX_PATH, const_cast<TCHAR *>(getSavedAvatarPath()));
@@ -220,23 +214,14 @@ INT_PTR CMimAPI::foldersPathChanged()
FoldersGetCustomPathT(m_hChatLogsPath, szTemp, MAX_PATH, const_cast<TCHAR *>(getChatLogPath()));
mir_sntprintf(m_szChatLogsPath, MAX_PATH, _T("%s"), szTemp);
-
Utils::ensureTralingBackslash(m_szChatLogsPath);
+ replaceStrT(g_Settings.pszLogDir, m_szChatLogsPath);
}
CreateDirectoryTreeT(m_szProfilePath);
CreateDirectoryTreeT(m_szSkinsPath);
CreateDirectoryTreeT(m_szSavedAvatarsPath);
CreateDirectoryTreeT(m_szChatLogsPath);
-#if defined(_FOLDER_LOCKING)
- mir_sntprintf(szTemp, MAX_PATH, L"%sfolder.lck", m_szChatLogsPath);
-
- if (m_hChatLogLock != INVALID_HANDLE_VALUE)
- CloseHandle(m_hChatLogLock);
-
- m_hChatLogLock = CreateFile(szTemp, GENERIC_WRITE, 0, 0, OPEN_ALWAYS, FILE_ATTRIBUTE_HIDDEN, 0);
-#endif
-
Skin->extractSkinsAndLogo(true);
Skin->setupAeroSkins();
return 0;
@@ -274,6 +259,8 @@ void CMimAPI::InitPaths()
}
Utils::ensureTralingBackslash(m_szChatLogsPath);
+ replaceStrT(g_Settings.pszLogDir, m_szChatLogsPath);
+
Utils::ensureTralingBackslash(m_szSkinsPath);
mir_sntprintf(m_szSavedAvatarsPath, MAX_PATH, _T("%s\\Saved Contact Pictures"), m_szProfilePath);