UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ConfigTypes.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreTypes.h"
6#include "Containers/Array.h"
9#include "Containers/Map.h"
10#include "CoreGlobals.h"
11
12
13class FConfigFileHierarchy : public TMap<int32, FUtf8String>
14{
15private:
16 int32 KeyGen = 0;
17
18public:
20
27
28private:
29 int32 GenerateDynamicKey();
30
31 int32 AddStaticLayer(const FString& Filename, int32 LayerIndex, int32 ExpansionIndex, int32 PlatformIndex, int32 Flags);
32 int32 AddDynamicLayer(const FString& Filename);
33
34 friend class FConfigFile;
35 friend class FConfigContext;
36};
37
44
46{
47 None = 0,
48 AllowCommandLineOverride = (1 << 1),
49 DedicatedServerOnly = (1 << 2), // replaces Default, Base, and (NOT {PLATFORM} yet) with an empty string
50 NoExpand = (1 << 4),
51 RequiresCustomConfig = (1 << 5), // disabled if no custom config specified
52 UseGlobalConfigCache = (1 << 6),
53 UsePluginConfigCache = (1 << 7),
54};
56
61{
62 // Used by the editor to display in the ini-editor
64 // Path to the ini file (with variables)
65 const TCHAR* Path;
66 // Special flag
68
69 // Will be cached early on to avoid threading issues
71 uint8 bExists = false;
72
73};
74
76{
77 None = 0,
78
79 ForUncooked = 1 << 0,
80 ForCooked = 1 << 1,
81 ForPlugin = 1 << 2,
82
83 ForEngine = 1 << 3,
84 ForProject = 1 << 4,
85
86 All = 0xFF,
87};
89
90
97{
98 // a set of replacements from the source file to possible other files
99 const TCHAR* Before1;
100 const TCHAR* After1;
102 const TCHAR* After2;
104};
105
EConfigExpansionFlags
Definition ConfigTypes.h:76
EConfigLayerFlags
Definition ConfigTypes.h:46
FPlatformTypes::TCHAR TCHAR
Either ANSICHAR or WIDECHAR, depending on whether the platform supports wide characters or the requir...
Definition Platform.h:1135
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define ENUM_CLASS_FLAGS(Enum)
Definition EnumClassFlags.h:6
uint8_t uint8
Definition binka_ue_file_header.h:8
uint16_t uint16
Definition binka_ue_file_header.h:7
Definition Archive.h:1208
Definition ConfigContext.h:31
Definition ConfigTypes.h:14
FConfigFileHierarchy()
Definition ConfigContext.cpp:1266
friend FArchive & operator<<(FArchive &Ar, FConfigFileHierarchy &ConfigFileHierarchy)
Definition ConfigTypes.h:21
Definition ConfigCacheIni.h:566
Definition NameTypes.h:617
Definition UnrealString.h.inl:34
Definition ConfigTypes.h:97
EConfigExpansionFlags Flags
Definition ConfigTypes.h:103
const TCHAR * Before1
Definition ConfigTypes.h:99
const TCHAR * Before2
Definition ConfigTypes.h:101
const TCHAR * After1
Definition ConfigTypes.h:100
const TCHAR * After2
Definition ConfigTypes.h:102
Definition ConfigTypes.h:61
EConfigLayerFlags Flag
Definition ConfigTypes.h:67
uint8 bExists
Definition ConfigTypes.h:71
uint8 bHasCheckedExist
Definition ConfigTypes.h:70
const TCHAR * Path
Definition ConfigTypes.h:65
const TCHAR * EditorName
Definition ConfigTypes.h:63
Definition ConfigTypes.h:39
FName Tag
Definition ConfigTypes.h:41
FString Filename
Definition ConfigTypes.h:40
uint16 Priority
Definition ConfigTypes.h:42