| 631 | } |
| 632 | |
| 633 | bool BootApp::CopyFile(const StringImpl& srcPath, const StringImpl& destPath) |
| 634 | { |
| 635 | BfpFileResult result = BfpFileResult_Ok; |
| 636 | for (int i = 0; i < 20; i++) |
| 637 | { |
| 638 | BfpFile_Copy(srcPath.c_str(), destPath.c_str(), BfpFileCopyKind_Always, &result); |
| 639 | if (result == BfpFileResult_Ok) |
| 640 | return true; |
| 641 | BfpThread_Sleep(100); |
| 642 | } |
| 643 | Fail(StrFormat("Failed to copy '%s' to '%s'", srcPath.c_str(), destPath.c_str())); |
| 644 | return false; |
| 645 | } |
| 646 | |
| 647 | #ifdef BF_PLATFORM_WINDOWS |
| 648 | void BootApp::DoLinkMS() |
nothing calls this directly
no test coverage detected