Files
UnrealEngineUWP/Engine/Source/Developer/Windows/LiveCoding/Private/LiveCodingSettings.cpp
ben marsh d4f10d3ec7 LiveCoding: Make properties for toggling on/off for engine modules hidden in installed builds.
#rb none
#jira UE-71274

#ROBOMERGE-OWNER: robert.manuszewski
#ROBOMERGE-AUTHOR: ben.marsh
#ROBOMERGE-SOURCE: CL 5353250 in //UE4/Release-4.22/... via CL 5364960
#ROBOMERGE-BOT: CORE (Main -> Dev-Core)

[CL 5424774 by ben marsh in Dev-Core branch]
2019-03-18 03:43:27 -04:00

23 lines
755 B
C++

// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
#include "LiveCodingSettings.h"
#include "Misc/App.h"
ULiveCodingSettings::ULiveCodingSettings(const FObjectInitializer& ObjectInitializer) : Super(ObjectInitializer)
{
UProperty* EngineModulesProperty = StaticClass()->FindPropertyByName("bIncludeEngineModules");
check(EngineModulesProperty != nullptr);
UProperty* EnginePluginModulesProperty = StaticClass()->FindPropertyByName("bIncludeEnginePluginModules");
check(EnginePluginModulesProperty != nullptr);
if (FApp::IsEngineInstalled())
{
EngineModulesProperty->ClearPropertyFlags(CPF_Edit);
EnginePluginModulesProperty->ClearPropertyFlags(CPF_Edit);
}
bIncludeProjectModules = true;
bIncludeProjectPluginModules = true;
}