2
3
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-14 10:37:41 -04:00

Don’t hardcode "Uru Live" but use ProductLongName().

Replicates behavior of PathGetLogDirectory().
This commit is contained in:
Christian Walther
2011-11-26 20:44:40 +01:00
parent 39a35f5fd3
commit 8ec36007c1

View File

@ -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);
}