Files
UnrealEngineUWP/Engine/Source/Programs/LiveLinkHub/Private/LiveLinkHubCommandlet.h
jeremie roy da9d328d59 LiveLink Hub
Change LiveLinkHub to use the card layout
Fix crash caused by null structdetailsview
Fix output log tab not being spawned when layout is restored
Clean up UI


#rb jason.walter
#jira UE-203919

[CL 30803792 by jeremie roy in ue5-main branch]
2024-01-23 09:56:28 -05:00

43 lines
1003 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "Commandlets/Commandlet.h"
#include "Modules/ModuleManager.h"
#include "ILiveLinkHubModule.h"
#include "LiveLinkHubCommandlet.generated.h"
UCLASS()
class ULiveLinkHubCommandlet : public UCommandlet
{
public:
GENERATED_BODY()
ULiveLinkHubCommandlet()
{
LogToConsole = false;
FastExit = true;
}
/** Runs the commandlet */
virtual int32 Main(const FString& Params) override
{
PRIVATE_GAllowCommandletRendering = true;
// Work around the CB file asset data source being disabled in commandlets.
if (IModuleInterface* AssetDataSourceModule = FModuleManager::Get().GetModule("ContentBrowserAssetDataSource"))
{
PRIVATE_GIsRunningCommandlet = false;
AssetDataSourceModule->StartupModule();
PRIVATE_GIsRunningCommandlet = true;
}
FModuleManager::Get().LoadModule("OutputLog");
FModuleManager::Get().LoadModuleChecked<ILiveLinkHubModule>("LiveLinkHub").StartLiveLinkHub();
return 0;
}
};