MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Cancel

Method Cancel

Source/Editor/Cooker/GameCooker.cpp:555–573  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

553}
554
555void 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
575void GameCooker::GetCurrentPlatform(PlatformType& platform, BuildPlatform& buildPlatform, BuildConfiguration& buildConfiguration)
576{

Callers 3

BuildScenesOrCancelMethod · 0.45
InitMainMenuMethod · 0.45
unloadMethod · 0.45

Calls 2

IsRunningFunction · 0.50
InterlockedIncrementFunction · 0.50

Tested by

no test coverage detected