| 243 | } |
| 244 | |
| 245 | static std::string BuildSteamCloudDocumentsPath(const std::string& steamPath, |
| 246 | const std::string& myDocuments, |
| 247 | uint32_t accountId, |
| 248 | uint32_t appId) { |
| 249 | if (myDocuments.empty() || accountId == 0) return {}; |
| 250 | std::string accountName = GetAccountNameFromLoginUsers(steamPath, accountId); |
| 251 | if (accountName.empty()) { |
| 252 | LOG("BuildSteamCloudDocumentsPath: could not resolve account name for accountId=%u", accountId); |
| 253 | return {}; |
| 254 | } |
| 255 | std::string appName = GetAppNameFromAppInfo(steamPath, appId); |
| 256 | if (appName.empty()) |
| 257 | appName = "App " + std::to_string(appId); |
| 258 | |
| 259 | #ifdef _WIN32 |
| 260 | return myDocuments + "Steam Cloud\\" + accountName + "\\" + appName + "\\"; |
| 261 | #else |
| 262 | return myDocuments + "Steam Cloud/" + accountName + "/" + appName + "/"; |
| 263 | #endif |
| 264 | } |
| 265 | |
| 266 | // AutoCloud rules loading |
| 267 |
no test coverage detected