Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FConfigCacheIni
Description
This helper function searches the cache before trying to load the ini file using LoadLocalIniFile. Note that the returned FConfigFile pointer must have the same lifetime as the passed in LocalFile.
| Name | FindOrLoadPlatformConfig |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/ConfigCacheIni.h |
| Include Path | #include "Misc/ConfigCacheIni.h" |
| Source | /Engine/Source/Runtime/Core/Private/Misc/ConfigCacheIni.cpp |
static FConfigFile * FindOrLoadPlatformConfig
(
FConfigFile & LocalFile,
const TCHAR * IniName,
const TCHAR * Platform
)
FConfigFile Found or loaded FConfigFile
Parameters
| Name | Remarks |
|---|---|
| LocalFile | The output object to fill. If the FConfigFile is found in the cache, this won't be used. |
| IniName | Either a Base ini name (Engine) or a full ini name (WrangleContent). NO PATH OR EXTENSION SHOULD BE USED! |
| Platform | The platform to use for Base ini names, NULL means to use the current platform |