FConfigFile::UpdateSections

Saves only the sections in this [FConfigFile](API\Runtime\Core\Misc\FConfigFile) into the given file.

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

void UpdateSections
(
    const TCHAR * DiskFilename,
    const TCHAR * IniRootName,
    const TCHAR * OverridePlatform
)

Remarks

Saves only the sections in this FConfigFile into the given file. All other sections in the file are left alone. The sections in this file are completely replaced. If IniRootName is specified, the current section settings are diffed against the file in the hierarchy up to right before this file (so, if you are saving DefaultEngine.ini, and IniRootName is "Engine", then Base.ini and BaseEngine.ini will be loaded, and only differences against that will be saved into DefaultEngine.ini)

Parameters

Parameter

Description

IniRootName

the name (like "Engine") to use to load a .ini hierarchy to diff against

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