Navigation
Unreal Engine C++ API Reference > Runtime > Core > Misc
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/Misc/ConfigCacheIni.h |
Include | #include "Misc/ConfigCacheIni.h" |
Syntax
class FConfigCacheIni
Remarks
Set of all cached config files.
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
DO NOT USE. This constructor is for internal usage only for hot-reload purposes. | ||
![]() |
FConfigCacheIni
(
EConfigCacheType Type |
Basic functions. |
Destructors
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
FConfigFile & | Add
(
const FString& Filename, |
|
![]() ![]() |
bool | Returns whether or not file operations are disabled | |
![]() ![]() |
void | Wipe all cached platform configs. Next ForPlatform call will load on-demand the platform configs | |
![]() ![]() |
bool | ContainsConfigFile
(
const FConfigFile* ConfigFile |
Reports whether an FConfigFile* is pointing to a config file inside of this Used for downstream functions to check whether a config file they were passed came from this ConfigCacheIni or from a different source such as LoadLocalIniFile |
![]() ![]() |
bool | CreateGConfigFromSaved
(
const TCHAR* Filename |
Create GConfig from a saved file |
![]() |
void | ||
![]() ![]() |
void | Disables any file IO by the config cache system | |
![]() |
bool | DoesSectionExist
(
const TCHAR* Section, |
|
![]() |
void | Dump
(
FOutputDevice& Ar, |
Prints out the entire config set, or just a single file if an ini is specified |
![]() |
bool | EmptySection
(
const TCHAR* Section, |
|
![]() |
bool | EmptySectionsMatchingString
(
const TCHAR* SectionString, |
|
![]() ![]() |
void | Re-enables file IO by the config cache system | |
![]() |
void | Exit () |
|
![]() |
FConfigFile * | Finds, loads, or creates the in-memory config file for a config cache filename. | |
![]() |
FConfigFile * | FindConfigFile
(
const FString& Filename |
Finds the in-memory config file for a config cache filename. |
![]() |
FConfigFile * | FindConfigFileWithBaseName
(
FName BaseName |
Finds Config file that matches the base name such as "Engine" |
![]() ![]() |
FConfigFile * | FindOrLoadPlatformConfig
(
FConfigFile& LocalFile, |
This helper function searches the cache before trying to load the ini file using LoadLocalIniFile. |
![]() ![]() |
FConfigFile * | FindPlatformConfig
(
const TCHAR* IniName, |
Attempts to find the platform config in the cache. |
![]() |
void | ||
![]() ![]() |
bool | ForEachEntry
(
const FKeyValueSink& Visitor, |
Allows to iterate through all key value pairs |
![]() ![]() |
FConfigCacheIni * | ForPlatform
(
FName PlatformName |
Retrieve the fully processed ini system for another platform. |
![]() |
int32 | ||
![]() |
bool | ||
![]() |
bool | GetBoolOrDefault
(
const TCHAR* Section, |
|
![]() |
bool | ||
![]() |
FString | GetConfigFilename
(
const TCHAR* BaseIniName |
For a base ini name, gets the config cache filename key that is used by other functions like Find. |
![]() |
void | GetConfigFilenames
(
TArray< FString >& ConfigFilenames |
Retrieve a list of all of the config files stored in the cache |
![]() ![]() |
const FString & | Returns the Custom Config string, which if set will load additional config files from Config/Custom/{CustomConfig}/DefaultX.ini to allow different types of builds. | |
![]() ![]() |
FString | GetDestIniFilename
(
const TCHAR* BaseIniName, |
Calculates the name of a dest (generated) .ini file for a given base (ie Engine, Game, etc) |
![]() |
bool | ||
![]() |
TArray< FString > | GetFilenames () |
|
![]() |
bool | ||
![]() |
float | GetFloatOrDefault
(
const TCHAR* Section, |
|
![]() |
bool | ||
![]() |
bool | ||
![]() |
int32 | GetIntOrDefault
(
const TCHAR* Section, |
Return a config value if found, if not found return default value does not indicate if return value came from config or the default value useful for one-time init of static variables in code locations where config may be queried too often, like : static int32 bMyConfigValue = GConfig->GetIntOrDefault(Section,Key,DefaultValue,ConfigFilename); |
![]() ![]() |
SIZE_T | USed to get the max memory usage for the FConfigCacheIni | |
![]() |
bool | GetPerObjectConfigSections
(
const FString& Filename, |
Retrieve the names of sections which contain data for the specified PerObjectConfig class. |
![]() |
bool | GetRotator
(
const TCHAR* Section, |
|
![]() |
bool | GetSection
(
const TCHAR* Section, |
|
![]() |
bool | GetSectionNames
(
const FString& Filename, |
Retrieve the names for all sections contained in the file specified by Filename |
![]() |
FConfigSection * | GetSectionPrivate
(
const TCHAR* Section, |
|
![]() |
int32 | GetSingleLineArray
(
const TCHAR* Section, |
Loads a "delimited" list of strings Loads a "delimited" list of string |
![]() |
FString | Derived functions. | |
![]() |
bool | ||
![]() |
FString | GetStringOrDefault
(
const TCHAR* Section, |
|
![]() |
bool | ||
![]() |
FText | GetTextOrDefault
(
const TCHAR* Section, |
|
![]() |
int32 | ||
![]() |
bool | ||
![]() |
bool | ||
![]() |
bool | ||
![]() |
bool | Generic versions for use with templates | |
![]() |
bool | ||
![]() |
bool | ||
![]() |
bool | GetVector2D
(
const TCHAR* Section, |
|
![]() |
bool | GetVector4
(
const TCHAR* Section, |
|
![]() ![]() |
void | Creates GConfig, loads the standard global ini files (Engine, Editor, etc), fills out GEngineIni, etc. | |
![]() ![]() |
bool | InitializeKnownConfigFiles
(
FConfigContext& Context |
Load the standard (used on all platforms) ini files, like Engine, Input, etc |
![]() |
bool | IsKnownConfigName
(
FName ConfigName |
Returns true if the given name is one of the known configs, where the matching G****Ini property is going to match the base name ("Engine" returns true, which means GEngineIni's value is just "Engine") |
![]() |
bool | ||
![]() ![]() |
void | Needs to be called after GConfig is set and LoadCoalescedFile was called. | |
![]() ![]() |
bool | LoadExternalIniFile
(
FConfigFile& ConfigFile, |
Load an ini file directly into an FConfigFile from the specified config folders, optionally writing to disk. |
![]() |
void | LoadFile
(
const FString& InFilename, |
|
![]() ![]() |
bool | LoadGlobalIniFile
(
FString& FinalIniFilename, |
Loads and generates a destination ini file and adds it to GConfig: |
![]() ![]() |
bool | LoadLocalIniFile
(
FConfigFile& ConfigFile, |
Load an ini file directly into an FConfigFile, and nothing is written to GConfig or disk. |
![]() ![]() |
FString | NormalizeConfigIniPath
(
const FString& NonNormalizedPath |
Normalizes file paths to INI files. |
![]() ![]() |
void | Parses apart an ini section that contains a list of 1-to-N mappings of names in the following format [PerMapPackages] MapName=Map1 Package=PackageA Package=PackageB MapName=Map2 Package=PackageC Package=PackageD | |
![]() ![]() |
void | Prases apart an ini section that contains a list of 1-to-N mappings of strings in the following format [PerMapPackages] MapName=Map1 Package=PackageA Package=PackageB MapName=Map2 Package=PackageC Package=PackageD | |
![]() |
int32 | ||
![]() |
bool | ||
![]() |
void | SaveCurrentStateForBootstrap
(
const TCHAR* Filename |
Save the current config cache state into a file for bootstrapping other processes. |
![]() |
void | ||
![]() |
void | ||
![]() |
void | ||
![]() |
void | ||
![]() |
void | ||
![]() |
void | SetFile
(
const FString& InFilename, |
|
![]() |
void | ||
![]() |
void | ||
![]() |
void | SetRotator
(
const TCHAR* Section, |
|
![]() |
void | SetSingleLineArray
(
const TCHAR* Section, |
Saves a "delimited" list of strings Saves a "delimited" list of strings |
![]() |
void | ||
![]() |
void | ||
![]() |
void | ||
![]() |
void | SetVector2D
(
const TCHAR* Section, |
|
![]() |
void | SetVector4
(
const TCHAR* Section, |
|
![]() ![]() |
void | ShowMemoryUsage
(
FOutputDevice& Ar |
Dumps memory stats for each file in the config cache to the specified archive. |
![]() |
void | UnloadFile
(
const FString& Filename |
Classes
Type | Name | Description | |
---|---|---|---|
![]() |
FKnownConfigFiles |
Deprecated Functions
Type | Name | Description | |
---|---|---|---|
![]() |
FConfigFile * | CreateIfNotFound is deprecated, please use the overload without this parameter or FindConfigFile |