| 349 | } |
| 350 | |
| 351 | bool Editor::BackupProject() |
| 352 | { |
| 353 | // Create backup directory |
| 354 | auto dstPath = Globals::ProjectFolder + TEXT(" - Backup"); |
| 355 | { |
| 356 | int32 count = 0; |
| 357 | while (count < 1000 && FileSystem::DirectoryExists(dstPath)) |
| 358 | { |
| 359 | dstPath = Globals::ProjectFolder + TEXT(" - Backup") + StringUtils::ToString(count++); |
| 360 | } |
| 361 | } |
| 362 | |
| 363 | LOG(Info, "Backup project to \"{0}\"", dstPath); |
| 364 | |
| 365 | // Copy everything |
| 366 | return FileSystem::CopyDirectory(dstPath, Globals::ProjectFolder); |
| 367 | } |
| 368 | |
| 369 | int32 Editor::LoadProduct() |
| 370 | { |
nothing calls this directly
no test coverage detected