FConfigCacheIni::LoadLocalIniFile

Load an ini file directly into an [FConfigFile](API\Runtime\Core\Misc\FConfigFile), and nothing is written to GConfig or disk.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Misc/ConfigCacheIni.h

Include

#include "Misc/ConfigCacheIni.h"

Source

/Engine/Source/Runtime/Core/Private/Misc/ConfigCacheIni.cpp

Syntax

static bool LoadLocalIniFile
(
    FConfigFile & ConfigFile,
    const TCHAR * IniName,
    bool bIsBaseIniName,
    const TCHAR * Platform,
    bool bForceReload
)

Remarks

Load an ini file directly into an FConfigFile, and nothing is written to GConfig or disk. The passed in .ini name can be a "base" (Engine, Game) which will be modified by platform and/or commandline override, or it can be a full ini filename (ie WrangleContent) loaded from the Source config directory

Returns

true if the ini file was loaded successfully

Parameters

Parameter

Description

ConfigFile

The output object to fill

IniName

Either a Base ini name (Engine) or a full ini name (WrangleContent). NO PATH OR EXTENSION SHOULD BE USED!

bIsBaseIniName

true if IniName is a Base name, which can be overridden on commandline, etc.

Platform

The platform to use for Base ini names, NULL means to use the current platform

bForceReload

force reload the ini file from disk this is required if you make changes to the ini file not using the config system as the hierarchy cache will not be updated in this case

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss