Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Misc
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Misc/ConfigContext.h |
| Include | #include "Misc/ConfigContext.h" |
Syntax
class FConfigContext
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bAllowGeneratedIniWhenCooked | ||
| bool | bAllowRemoteConfig | ||
| FString | BaseIniName | ||
| bool | bCacheOnNextLoad | ||
| bool | bDefaultEngineRequired | ||
| bool | bDoNotResetConfigFile | ||
| bool | bForceReload | ||
| bool | bIsForPlugin | ||
| bool | bIsHierarchicalConfig | ||
| bool | bUseHierarchyCache | ||
| bool | bWriteDestIni | ||
| TArray< FString > | ChildPluginBaseDirs | ||
| FConfigFile * | ConfigFile | ||
| FConfigCacheIni * | ConfigSystem | ||
| FString | DestIniFilename | ||
| FString | EngineConfigDir | ||
| FString | EngineRootDir | ||
| FString | GeneratedConfigDir | ||
| const TSet< FString > * | IniCacheSet | If this is non-null, it contains a set of pre-scanned ini files to use to find files, instead of looking on disk | |
| TMap< FString, FPerPlatformDirs > | PerPlatformDirs | ||
| FString | Platform | ||
| FString | PluginRootDir | ||
| FString | ProjectConfigDir | ||
| FString | ProjectNoRedistDir | ||
| FString | ProjectNotForLicenseesDir | Useful strings that are used alot when walking the hierarchy | |
| FString | ProjectRootDir | ||
| FString | SavePlatform | ||
| FString | StartSkippingAtFilename |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FConfigContext
(
FConfigCacheIni* InConfigSystem, |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | |||
| void | CachePaths () |
||
| void | Call to make before attempting parallel config init | ||
| FConfigContext | Create a context to read a hierarchical config into GConfig. Only for current platform. | ||
| bool | This will load up two .ini files and then determine if the destination one is outdated by comparing version number in [CurrentIniVersion] section, Version key against the version in the Default*.ini Outdatedness is determined by the following mechanic: | ||
| const FPerPlatformDirs & | GetPerPlatformDirs
(
const FString& PlatformName |
Return the paths to use to find hierarchical config files for the given platform (note that these are independent of the ini name) | |
| bool | Load
(
const TCHAR* IniName |
Use the context to perform the actual load operation. | |
| bool | Use the context to perform the actual load operation as above, but will return the generated final ini filename (in the case of GConfig, this would be the key used to look up into GConfig, for example) | ||
| FString | PerformFinalExpansions
(
const FString& InString, |
||
| bool | PerformLoad () |
||
| bool | PrepareForLoad
(
bool& bPerformLoad |
||
| FConfigContext | ReadIntoConfigSystem
(
FConfigCacheIni* ConfigSystem, |
Create a context to read a hierarchical config into the given ConfigSystem structure - usually will be for other platforms | |
| FConfigContext | Create a context to read a hierarchical config into GConfig. Only for current platform. | ||
| FConfigContext | ReadIntoLocalFile
(
FConfigFile& DestConfigFile, |
Create a context to read a hierarchical config into the given local FConfigFile, optionally for another platform | |
| FConfigContext | ReadIntoPluginFile
(
FConfigFile& DestConfigFile, |
Create a context to read a plugin's ini file named for the plugin. | |
| FConfigContext | ReadSingleIntoConfigSystem
(
FConfigCacheIni* ConfigSystem, |
Create a context to read a non-hierarchical config into the given ConfigSystem structure - usually will be for other platforms | |
| FConfigContext | Create a context to read a non-hierarchical config into GConfig. Only for current platform. | ||
| FConfigContext | ReadSingleIntoLocalFile
(
FConfigFile& DestConfigFile, |
Create a context to read a non-hierarchical config into the given local FConfigFile, optionally for another platform | |
| FConfigContext | ReadUpToBeforeFile
(
FConfigFile& DestConfigFile, |
Create a context to read a hierarchy, but once it reaches the given filename (StartDeletingFilename), it will not read in anymore files at that point | |
| FConfigContext & | ResetBaseIni
(
const TCHAR* InBaseIniName |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FPerPlatformDirs | Because the hierarchy can jump between platforms, we cache off some directories per chained-platform |