Files
UnrealEngineUWP/Engine/Source/Developer/Windows/LiveCoding/Private/LiveCodingSettings.cpp

23 lines
755 B
C++
Raw Normal View History

// 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;
}