Files
UnrealEngineUWP/Engine/Source/Programs/HeadlessChaosPerf/Private/HeadlessChaosPerfApp.cpp
Devin Doucette 2bda528abc Fixed missing calls to FEngineLoop::AppExit
Skipping AppExit can cause crashes on exit because systems are destroyed in the wrong order.

#jira UE-170063
#preflight none
#rb Brandon.Schaefer
#rnx

[CL 23139565 by Devin Doucette in ue5-main branch]
2022-11-15 13:46:14 -05:00

32 lines
699 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "ChaosPerf/ChaosPerf.h"
#include "Modules/ModuleManager.h"
#include "RequiredProgramMainCPPInclude.h"
IMPLEMENT_APPLICATION(HeadlessChaosPerf, "HeadlessChaosPerf");
#define LOCTEXT_NAMESPACE "HeadlessChaosPerf"
DEFINE_LOG_CATEGORY(LogChaosPerf);
INT32_MAIN_INT32_ARGC_TCHAR_ARGV()
{
// start up the main loop
GEngineLoop.PreInit(ArgC, ArgV);
FModuleManager::Get().StartProcessingNewlyLoadedObjects();
ChaosPerf::FPerfTestRegistry::Get().RunAll();
FEngineLoop::AppPreExit();
FModuleManager::Get().UnloadModulesAtShutdown();
FEngineLoop::AppExit();
FPlatformMisc::RequestExit(false);
return 0;
}
#undef LOCTEXT_NAMESPACE