2023-10-16 12:21:47 -04:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
2023-10-16 12:18:42 -04:00
|
|
|
#include "LiveLinkHubRun.h"
|
|
|
|
|
|
|
|
|
|
#include "LaunchEngineLoop.h"
|
|
|
|
|
|
|
|
|
|
DEFINE_LOG_CATEGORY_STATIC(LogLiveLinkHub, Log, All);
|
|
|
|
|
|
|
|
|
|
int32 RunLiveLinkHub(const TCHAR* CommandLine)
|
|
|
|
|
{
|
|
|
|
|
FTaskTagScope Scope(ETaskTag::EGameThread);
|
|
|
|
|
|
|
|
|
|
// Start up the main loop, adding some extra command line arguments:
|
2023-12-06 10:31:59 -05:00
|
|
|
const int32 Result = GEngineLoop.PreInit(*FString::Printf(TEXT("%s %s"), CommandLine, TEXT("LiveLinkHubCommandlet -Messaging -DDC=NoShared -NoShaderCompile")));
|
2023-10-16 12:18:42 -04:00
|
|
|
|
|
|
|
|
if (Result != 0)
|
|
|
|
|
{
|
|
|
|
|
UE_LOG(LogLiveLinkHub, Error, TEXT("EngineLoop PreInit failed!"));
|
|
|
|
|
return Result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
GEngineLoop.Exit();
|
|
|
|
|
|
|
|
|
|
return Result;
|
|
|
|
|
}
|