Orrery Terrain · OrreryTerrain module · member function
UOrreryTerrainSettings::
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 "OrreryTerrainSettings.h"- Module
PublicDependencyModuleNames.Add("OrreryTerrain");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
| Name | Type | Default | Meaning |
|---|---|---|---|
Config | const FConfig | — | The config to read, normally the game config the settings load from. |
Section | const FString& | — | The settings' section, normally the class path (/Script/OrreryTerrain.OrreryTerrainSettings). |
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.