summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/mim.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/TabSRMM/src/mim.cpp')
-rw-r--r--plugins/TabSRMM/src/mim.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/plugins/TabSRMM/src/mim.cpp b/plugins/TabSRMM/src/mim.cpp
index d70cd091b8..8eec49f5de 100644
--- a/plugins/TabSRMM/src/mim.cpp
+++ b/plugins/TabSRMM/src/mim.cpp
@@ -392,12 +392,16 @@ void CMimAPI::InitPaths()
const TCHAR *szUserdataDir = getUserDir();
mir_sntprintf(m_szProfilePath, MAX_PATH, _T("%stabSRMM"), szUserdataDir);
- mir_sntprintf(m_szChatLogsPath, MAX_PATH, _T("%sLogs\\"), szUserdataDir);
-
if (ServiceExists(MS_FOLDERS_REGISTER_PATH))
- mir_sntprintf(m_szSkinsPath, MAX_PATH, _T("%%miranda_path%%\\Skins\\TabSRMM\\"));
+ {
+ mir_sntprintf(m_szChatLogsPath, MAX_PATH, _T("%%miranda_logpath%%"));
+ mir_sntprintf(m_szSkinsPath, MAX_PATH, _T("%%miranda_path%%\\Skins\\TabSRMM"));
+ }
else
- mir_sntprintf(m_szSkinsPath, MAX_PATH, VARST(_T("%miranda_path%\\Skins\\TabSRMM\\")));
+ {
+ mir_sntprintf(m_szChatLogsPath, MAX_PATH, VARST(_T("%%miranda_logpath%%")));
+ mir_sntprintf(m_szSkinsPath, MAX_PATH, VARST(_T("%miranda_path%\\Skins\\TabSRMM")));
+ }
mir_sntprintf(m_szSavedAvatarsPath, MAX_PATH, _T("%s\\Saved Contact Pictures"), m_szProfilePath);
}