Files
UnrealEngineUWP/Engine/Source/Developer/LauncherServices/Private/Launcher/LauncherVerifyProfileTask.h
ryan durand 471d972e62 Updating copyright for Engine Developer.
#rnx
#rb none


#ROBOMERGE-SOURCE: CL 10869240 via CL 10869516 via CL 10869902
#ROBOMERGE-BOT: (v613-10869866)

[CL 10870584 by ryan durand in Main branch]
2019-12-26 15:32:37 -05:00

39 lines
960 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Launcher/LauncherTask.h"
/**
* Implements a launcher task for verifying the profile settings.
*/
class FLauncherVerifyProfileTask
: public FLauncherTask
{
public:
/**
* Creates and initializes a new instance.
*
* @param InProfile - The launcher profile containing the cook settings.
* @param InSessionId - The session identifier.
* @param InPlatformName - The name of the platform to cook.
*/
FLauncherVerifyProfileTask( )
: FLauncherTask(NSLOCTEXT("FLauncherTask", "LauncherVerifyProfileName", "Verify").ToString(), NSLOCTEXT("FLauncherTask", "LauncherVerifyProfileDesc", "Verify profile settings").ToString(), NULL, NULL)
{ }
protected:
virtual bool PerformTask( FLauncherTaskChainState& ChainState ) override
{
if (ChainState.Profile.IsValid())
{
return ChainState.Profile->IsValidForLaunch();
}
return false;
}
};