Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Misc
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Misc/ConfigCacheIni.h |
| Include | #include "Misc/ConfigCacheIni.h" |
Syntax
class FConfigBranch
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bIsHierarchical | ||
| bool | bIsSafeUnloaded | ||
| FConfigFile | CombinedStaticLayers | Cache the static layers so when remaking dynamic layers after removing a dynamic layer it's faster | |
| FConfigCommandStream | CommandLineOverrides | ||
| DynamicLayerList | DynamicLayers | ||
| FConfigFile | FinalCombinedLayers | This contains everything read from disk - when saving the diff between this and InMemoryFile is written out | |
| FConfigFileHierarchy | Hierarchy | ||
| FName | IniName | Base name of the branch, like "Engine" | |
| FString | IniPath | "final" path for the branch like "Saved/Config/WIndows/Engine.ini" | |
| FConfigFile | InMemoryFile | This is the file that maps to the old FConfigFiles stored in the FConfigCacheIni | |
| FName | Platform | ||
| EBranchReplayMethod | ReplayMethod | ||
| FConfigCommandStream | RuntimeChanges | Tracks runtime changes for optimal saving | |
| FConfigCommandStream | SavedLayer | TMap |
|
| FString | SourceEngineConfigDir | Locations where this file may have come from - used to merge with non-standard ini locations. | |
| FString | SourceProjectConfigDir | ||
| TMap< FString, FConfigCommandStream > | StaticLayers |
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Standard branch that will be used by, say, GConfig to hold the inis for Engine, Game, etc. | |||
FConfigBranch
(
const FConfigFile& ExistingFile |
A "dummy" branch used to manage a single external FConfigFile. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | AddDynamicLayersToHierarchy
(
const TArray< FString >& Filenames, |
||
| bool | AddDynamicLayerStringToHierarchy
(
const FString& Filename, |
Add a preloaded string as a dynamic layer (useful for hotfixing) | |
| bool | AddDynamicLayerToHierarchy
(
const FString& Filename, |
Appends a new INI file to the SourceIniHierarchy and combines it with the current contents Additonally, returns the FConfigFIle object that contains just the loaded sections Can return the modified sections if the callers wants to reloadconfig on classes | |
| void | Dump
(
FOutputDevice& Ar |
||
| void | Flush () |
||
| bool | RemoveDynamicLayerFromHierarchy
(
const FString& Filename, |
Removes a dyanmic file from the hierarchy and recalculates the branch's IniMemoryFile Can return the modified sections if the callers wants to reloadconfig on classes | |
| bool | RemoveDynamicLayersFromHierarchy
(
const TArray< FString >& Filenames, |
||
| bool | RemoveSection
(
const TCHAR* Section |
Removes the section completely from all layers of this branch This is destructive! It will not reload on demand (like SafeUnload does). | |
| void | RunOnEachCommandStream
(
TFunction< void(FConfigCommandStream&File, const FString&Name)> Func |
||
| void | RunOnEachFile
(
TFunction< void(FConfigFile&File, const FString&Name)> Func |
Run a function on every file in the branch | |
| void | SafeReload () |
||
| void | SafeUnload () |
Frees up the static layer memory, which can be useful if a branch is loaded from, cached, and never used again. | |
| void | Shrink () |
Typedefs
| Name | Description |
|---|---|
| DynamicLayerList |