Files
UnrealEngineUWP/Engine/Source/Programs/LiveLinkHub/Private/LiveLinkHubRun.cpp
jeremie roy e6f1583f72 Fix crash when loading livelink in shipping outside of engine directory
Compile without python (Note that plugin dependency is still needed for the other plugins to load)
Compile with MessageBus support in shipping
Compile without localization support

#jira UE-204936
#rb jason.walter

[CL 31133562 by jeremie roy in ue5-main branch]
2024-02-02 13:50:19 -05:00

36 lines
951 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "LiveLinkHubRun.h"
#include "Misc/CoreDelegates.h"
#include "LaunchEngineLoop.h"
#ifndef WITH_ASSET_LOADING_AUDIT
#define WITH_ASSET_LOADING_AUDIT 0
#endif
DEFINE_LOG_CATEGORY_STATIC(LogLiveLinkHub, Log, All);
int32 RunLiveLinkHub(const TCHAR* CommandLine)
{
FTaskTagScope Scope(ETaskTag::EGameThread);
#if WITH_ASSET_LOADING_AUDIT
FCoreDelegates::OnSyncLoadPackage.AddLambda([](const FString& PackageName)
{
UE_LOG(LogLiveLinkHub, Display, TEXT("Audit: Loaded %s"), *PackageName);
});
#endif
// Start up the main loop, adding some extra command line arguments:
const int32 Result = GEngineLoop.PreInit(*FString::Printf(TEXT("%s %s"), CommandLine, TEXT("LiveLinkHubCommandlet -Messaging -DDC=NoShared -NoShaderCompile")));
if (Result != 0)
{
UE_LOG(LogLiveLinkHub, Error, TEXT("EngineLoop PreInit failed!"));
return Result;
}
GEngineLoop.Exit();
return Result;
}