From 88ff3a278918d915cd09b568f8a177c417809d39 Mon Sep 17 00:00:00 2001 From: elektrahesse Date: Fri, 17 Sep 2010 19:54:49 +0200 Subject: Fixed path separators for im history so it's multiplatform now --- linden/indra/newview/llimpanel.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'linden') diff --git a/linden/indra/newview/llimpanel.cpp b/linden/indra/newview/llimpanel.cpp index 797e997..3080a9e 100644 --- a/linden/indra/newview/llimpanel.cpp +++ b/linden/indra/newview/llimpanel.cpp @@ -1875,7 +1875,14 @@ void LLFloaterIMPanel::onCommitCombo(LLUICtrl* caller, void* userdata) std::string fullname = self->getTitle(); //gCacheName->getFullName(self->mOtherParticipantUUID, fullname); //if(fullname == "(Loading...)") - std::string file = gDirUtilp->getPerAccountChatLogsDir() + "\\" + fullname + ".txt"; + std::string separator; +#ifdef LL_WINDOWS + separator = "\\"; +#else + separator = "/"; +#endif + std::string file = gDirUtilp->getPerAccountChatLogsDir() + separator + fullname + ".txt"; + llinfos << "File is: '" << file << "'" << llendl; llstat stat_info; if (LLFile::stat(file.c_str(), &stat_info)) -- cgit v1.1