diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2013-04-06 15:13:47 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2013-04-06 15:13:47 +0000 |
commit | a3f57633a21f0485e852ea6cfc32655e33821693 (patch) | |
tree | 7aa77099dc73b52d71ab6e4917cd27dc44229031 | |
parent | b3df7242d18b269b0a651d6bc1812d6cff093d2f (diff) |
default path correction
git-svn-id: http://svn.miranda-ng.org/main/trunk@4332 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | plugins/TabSRMM/src/mim.cpp | 12 |
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);
}
|