| 553 | } |
| 554 | |
| 555 | void GameCooker::Cancel(bool waitForEnd) |
| 556 | { |
| 557 | if (!IsRunning()) |
| 558 | return; |
| 559 | |
| 560 | // Set flag |
| 561 | Platform::InterlockedIncrement(&CancelFlag); |
| 562 | |
| 563 | if (waitForEnd) |
| 564 | { |
| 565 | LOG(Warning, "Waiting for the Game Cooker end..."); |
| 566 | |
| 567 | // Wait for the end |
| 568 | while (GameCookerImpl::IsRunning) |
| 569 | { |
| 570 | Platform::Sleep(10); |
| 571 | } |
| 572 | } |
| 573 | } |
| 574 | |
| 575 | void GameCooker::GetCurrentPlatform(PlatformType& platform, BuildPlatform& buildPlatform, BuildConfiguration& buildConfiguration) |
| 576 | { |
no test coverage detected