std::wstring Environment::GetDataPath() { if (IsInstalled() || IsAppContainerProcess()) { return IO::Path::Combine( GetKnownFolderPath(FOLDERID_LocalAppData), TEXT("PicoTorrent")); } return GetApplicationPath(); }
std::wstring GetDataPath() { std::wstring path; #ifdef TAIGA_PORTABLE // Return current path in portable mode path = GetPathOnly(Taiga.GetModulePath()); #else // Return %AppData% folder path = GetKnownFolderPath(FOLDERID_RoamingAppData); AddTrailingSlash(path); path += TAIGA_APP_NAME; #endif AddTrailingSlash(path); return path + L"data\\"; }