Skip to content
Orbdale

Orbdale Terrain · OrbdaleTerrain module · member function

UOrbdaleTerrainSettings::

MigrateLegacyQuality

Reads a profile source stored by an earlier version (Section's key QualityProfile) into Quality, when Config holds no key Quality in Section.

Declaration

bool MigrateLegacyQuality(const FConfigFile& Config, const FString& Section);
Header
#include "OrbdaleTerrainSettings.h"
Module
PublicDependencyModuleNames.Add("OrbdaleTerrain"); in your module’s Build.cs.
Stability
Stable: changes within a major version only add.
Thread
Game thread.

Description

PostInitProperties calls it on the class default object with the project's game config.

Parameters

NameTypeDefaultMeaning
Configconst FConfigFile&—

The config to read, normally the game config the settings load from.

Sectionconst FString&—

The settings' section, normally the class path (/Script/OrbdaleTerrain.OrbdaleTerrainSettings).

Returns

True when it set Quality from the old key; false when the new key exists, the old one does not, or it names no mode (a warning is logged).

Note.

Game thread. Writes nothing to disk: the next save of the settings stores the key Quality.