Files
UnrealEngineUWP/Engine/Source/Developer/DrawPrimitiveDebugger/Private/DrawPrimitiveDebuggerConfig.cpp
bryan sefcik 0beee50b45 Updated ../Engine/Source/Developer/... to inline gen.cpp files
Before:
Total CPU Time: 53783.640625 s
Total time in Parallel executor: 558.66 seconds
After:
Total CPU Time: 47886.140625 s
Total time in Parallel executor: 498.81 seconds

#jira

[CL 22173145 by bryan sefcik in ue5-main branch]
2022-09-24 13:31:25 -04:00

18 lines
686 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "DrawPrimitiveDebuggerConfig.h"
#include "Misc/ConfigCacheIni.h"
#include UE_INLINE_GENERATED_CPP_BY_NAME(DrawPrimitiveDebuggerConfig)
void UDrawPrimitiveDebuggerUserSettings::SetFontSize(const int32 InFontSize)
{
UDrawPrimitiveDebuggerUserSettings* Settings = GetMutableDefault<UDrawPrimitiveDebuggerUserSettings>();
Settings->FontSize = FMath::Clamp(InFontSize, 1, 100);
const FString ConfigFileName = Settings->GetProjectUserConfigFilename();
GConfig->SetInt(TEXT("/Script/DrawPrimitiveDebugger.DrawPrimitiveDebuggerUserSettings"), TEXT("FontSize"), Settings->FontSize, *ConfigFileName);
GConfig->Flush(false);
}