Files
UnrealEngine/Engine/Source/Developer/Windows/LiveCoding/Private/LiveCodingSettings.cpp
2025-05-18 13:04:45 +08:00

26 lines
808 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "LiveCodingSettings.h"
#include "Misc/App.h"
#include UE_INLINE_GENERATED_CPP_BY_NAME(LiveCodingSettings)
ULiveCodingSettings::ULiveCodingSettings(const FObjectInitializer& ObjectInitializer) : Super(ObjectInitializer)
{
FProperty* EngineModulesProperty = StaticClass()->FindPropertyByName("bPreloadEngineModules");
check(EngineModulesProperty != nullptr);
FProperty* EnginePluginModulesProperty = StaticClass()->FindPropertyByName("bPreloadEnginePluginModules");
check(EnginePluginModulesProperty != nullptr);
if (FApp::IsEngineInstalled())
{
EngineModulesProperty->ClearPropertyFlags(CPF_Edit);
EnginePluginModulesProperty->ClearPropertyFlags(CPF_Edit);
}
bPreloadProjectModules = true;
bPreloadProjectPluginModules = true;
}