From 15fd89ff52746c621c4a262710da4de6e8968bbd Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 6 Apr 2013 19:12:45 +0000 Subject: fix for the default log path in tabSRMM git-svn-id: http://svn.miranda-ng.org/main/trunk@4347 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TabSRMM/src/chat/chat.h | 18 +++++++++--------- plugins/TabSRMM/src/mim.cpp | 4 ++++ 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/plugins/TabSRMM/src/chat/chat.h b/plugins/TabSRMM/src/chat/chat.h index 12fa5bb75d..4af20786c5 100644 --- a/plugins/TabSRMM/src/chat/chat.h +++ b/plugins/TabSRMM/src/chat/chat.h @@ -285,9 +285,9 @@ struct TMUCSettings { TCHAR* pszTimeStampLog; TCHAR* pszIncomingNick; TCHAR* pszOutgoingNick; - TCHAR pszLogDir[MAX_PATH + 20]; - LONG iNickListFontHeight; - HFONT UserListFont, UserListHeadingsFont; + TCHAR pszLogDir[MAX_PATH + 20]; + LONG iNickListFontHeight; + HFONT UserListFont, UserListHeadingsFont; HFONT NameFont; COLORREF crUserListColor; COLORREF crUserListBGColor; @@ -295,12 +295,12 @@ struct TMUCSettings { COLORREF crPUTextColour; COLORREF crPUBkgColour; BYTE ClassicIndicators; - //MAD - BYTE LogClassicIndicators; - BYTE AlternativeSorting; - BYTE AnnoyingHighlight; - BYTE CreateWindowOnHighlight; - //MAD_ + + BYTE LogClassicIndicators; + BYTE AlternativeSorting; + BYTE AnnoyingHighlight; + BYTE CreateWindowOnHighlight; + BYTE LogSymbols; BYTE ClickableNicks; BYTE ColorizeNicks; diff --git a/plugins/TabSRMM/src/mim.cpp b/plugins/TabSRMM/src/mim.cpp index 74241bd7fd..065bde4837 100644 --- a/plugins/TabSRMM/src/mim.cpp +++ b/plugins/TabSRMM/src/mim.cpp @@ -400,6 +400,10 @@ void CMimAPI::InitPaths() lstrcpyn(m_szChatLogsPath, VARST(_T("%miranda_logpath%")), MAX_PATH); lstrcpyn(m_szSkinsPath, VARST(_T("%miranda_path%\\Skins\\TabSRMM")), MAX_PATH); } + + Utils::ensureTralingBackslash(m_szChatLogsPath); + Utils::ensureTralingBackslash(m_szSkinsPath); + mir_sntprintf(m_szSavedAvatarsPath, MAX_PATH, _T("%s\\Saved Contact Pictures"), m_szProfilePath); } -- cgit v1.2.3