Files
UnrealEngineUWP/Engine/Source/Developer/Windows/LiveCoding/Private/LiveCodingSettings.cpp
ben marsh 583aa01bf7 LiveCoding: Add support for lazy loading modules. This lets us enable live coding for the entire engine without a large startup penalty. Project modules are still preloaded by default.
#rb none
#jira

#ROBOMERGE-SOURCE: CL 5437980 in //UE4/Release-4.22/...
#ROBOMERGE-BOT: RELEASE (Release-4.22 -> Main)

[CL 5437990 by ben marsh in Main branch]
2019-03-18 18:07:05 -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("bPreloadEngineModules");
check(EngineModulesProperty != nullptr);
UProperty* EnginePluginModulesProperty = StaticClass()->FindPropertyByName("bPreloadEnginePluginModules");
check(EnginePluginModulesProperty != nullptr);
if (FApp::IsEngineInstalled())
{
EngineModulesProperty->ClearPropertyFlags(CPF_Edit);
EnginePluginModulesProperty->ClearPropertyFlags(CPF_Edit);
}
bPreloadProjectModules = true;
bPreloadProjectPluginModules = true;
}