summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-04-06 15:13:47 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-04-06 15:13:47 +0000
commita3f57633a21f0485e852ea6cfc32655e33821693 (patch)
tree7aa77099dc73b52d71ab6e4917cd27dc44229031 /plugins/TabSRMM
parentb3df7242d18b269b0a651d6bc1812d6cff093d2f (diff)
default path correction
git-svn-id: http://svn.miranda-ng.org/main/trunk@4332 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM')
-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);
}