From 8ec36007c134ebe6dbf434f8277250816fc8782a Mon Sep 17 00:00:00 2001 From: Christian Walther Date: Sat, 26 Nov 2011 20:44:40 +0100 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20hardcode=20"Uru=20Live"=20but?= =?UTF-8?q?=20use=20ProductLongName().?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replicates behavior of PathGetLogDirectory(). --- Sources/Plasma/PubUtilLib/plStatusLog/plStatusLog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/Plasma/PubUtilLib/plStatusLog/plStatusLog.cpp b/Sources/Plasma/PubUtilLib/plStatusLog/plStatusLog.cpp index eea7463b..f0a08e03 100644 --- a/Sources/Plasma/PubUtilLib/plStatusLog/plStatusLog.cpp +++ b/Sources/Plasma/PubUtilLib/plStatusLog/plStatusLog.cpp @@ -94,15 +94,15 @@ plStatusLogMgr::plStatusLogMgr() #if HS_BUILD_FOR_WIN32 SHGetSpecialFolderPathW(NULL, fBasePath, CSIDL_LOCAL_APPDATA, TRUE); - plFileUtils::ConcatFileName(fBasePath, L"Uru Live"); //#elif HS_BUILD_FOR_DARWIN // Do some Mac specific thing here eventually #else wchar* temp = hsStringToWString(getenv("HOME")); - swprintf(fBasePath, MAX_PATH, L"%S/.cache/Uru Live", temp); + swprintf(fBasePath, MAX_PATH, L"%S/.cache", temp); delete[] temp; #endif + plFileUtils::ConcatFileName(fBasePath, ProductLongName()); plFileUtils::ConcatFileName(fBasePath, L"Log"); plFileUtils::EnsureFilePathExists(fBasePath); }