2019-12-26 15:32:37 -05:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
2019-03-05 18:49:25 -05:00
|
|
|
|
|
|
|
|
#include "LiveCodingSettings.h"
|
2019-03-11 18:58:59 -04:00
|
|
|
#include "Misc/App.h"
|
2019-03-05 18:49:25 -05:00
|
|
|
|
2022-09-24 13:31:25 -04:00
|
|
|
#include UE_INLINE_GENERATED_CPP_BY_NAME(LiveCodingSettings)
|
|
|
|
|
|
2019-03-05 18:49:25 -05:00
|
|
|
ULiveCodingSettings::ULiveCodingSettings(const FObjectInitializer& ObjectInitializer) : Super(ObjectInitializer)
|
|
|
|
|
{
|
2019-12-13 11:07:03 -05:00
|
|
|
FProperty* EngineModulesProperty = StaticClass()->FindPropertyByName("bPreloadEngineModules");
|
2019-03-11 18:58:59 -04:00
|
|
|
check(EngineModulesProperty != nullptr);
|
|
|
|
|
|
2019-12-13 11:07:03 -05:00
|
|
|
FProperty* EnginePluginModulesProperty = StaticClass()->FindPropertyByName("bPreloadEnginePluginModules");
|
2019-03-11 18:58:59 -04:00
|
|
|
check(EnginePluginModulesProperty != nullptr);
|
|
|
|
|
|
|
|
|
|
if (FApp::IsEngineInstalled())
|
|
|
|
|
{
|
|
|
|
|
EngineModulesProperty->ClearPropertyFlags(CPF_Edit);
|
|
|
|
|
EnginePluginModulesProperty->ClearPropertyFlags(CPF_Edit);
|
|
|
|
|
}
|
|
|
|
|
|
2019-03-18 18:07:05 -04:00
|
|
|
bPreloadProjectModules = true;
|
|
|
|
|
bPreloadProjectPluginModules = true;
|
2019-03-05 18:49:25 -05:00
|
|
|
}
|
2022-09-24 13:31:25 -04:00
|
|
|
|