FConfigHierarchy
- Module
- Core
- Header
#include "Core/ConfigIni.h"- Namespace
Mowo
Public functions
| Returns | Name | Description |
|---|---|---|
std::vector<std::filesystem::path> | LayerFiles | Every layer file for baseName ("Engine", "Game", "Scalability"), lowest first, whether or not it exists. |
bool | Build | Combines the existing layers. |
std::filesystem::path | UserFile | The file a per-user change to baseName is written to. |
uint32_t | ApplyConsoleVariables | Sets every cvar in [ConsoleVariables] and [ScalabilityGroups] (sg.*), as setBy. |
uint32_t | ApplyScalabilityGroup | Scalability.ini's [<Group>@<Level>] sections: the cvars a group level sets beyond the tier rows, e.g. |
FConfigLayerDirs | DirsForProject | The layer directories for a project whose Config/ is projectConfigDir: the engine's Engine/Config, that Config/, and <project>/Saved/Config. |
bool | LoadProjectEngineConfig | A project's engine settings for a reader that runs without the project-open overlay — the backend choice inside Engine::Initialize, the release logger, a packaged game whose manifest comes from a pak: the Config/Engine.ini (converted from a legacy Engine.mdf on first touch) with the Engine INI hierarchy over it, so DefaultEngine.ini wins. |
Function details
LayerFiles
static std::vector<std::filesystem::path> LayerFiles(const FConfigLayerDirs& dirs, const std::string& baseName)Every layer file for baseName ("Engine", "Game", "Scalability"), lowest first, whether or not it exists.
Build
static bool Build(const FConfigLayerDirs& dirs, const std::string& baseName, FConfigIniFile& out, std::vector<std::filesystem::path>* used = nullptr, std::string* error = nullptr)Combines the existing layers. used lists the files that were read.
UserFile
static std::filesystem::path UserFile(const FConfigLayerDirs& dirs, const std::string& baseName)The file a per-user change to baseName is written to.
ApplyConsoleVariables
static uint32_t ApplyConsoleVariables(const FConfigIniFile& file, ECVarSetBy setBy = ECVarSetBy::ProjectSetting)Sets every cvar in [ConsoleVariables] and [ScalabilityGroups] (sg.*), as setBy. Returns how many applied; an unregistered name is remembered and set when a cvar of that name registers, so a plugin that loads later still gets its line, and one that is off does not fail the load.
ApplyScalabilityGroup
static uint32_t ApplyScalabilityGroup(const FConfigIniFile& file, const std::string& group, int32_t level)Scalability.ini's [<Group>@<Level>] sections: the cvars a group level sets beyond the tier rows, e.g. [ShadowQuality@3] for sg.ShadowQuality=3. Applied as ECVarSetBy::Scalability, below every INI and player setting.
DirsForProject
static FConfigLayerDirs DirsForProject(const std::filesystem::path& projectConfigDir)The layer directories for a project whose Config/ is projectConfigDir: the engine's Engine/Config, that Config/, and <project>/Saved/Config.
LoadProjectEngineConfig
static bool LoadProjectEngineConfig(const std::filesystem::path& projectConfigDir, Config& out)A project's engine settings for a reader that runs without the project-open overlay — the backend choice inside Engine::Initialize, the release logger, a packaged game whose manifest comes from a pak: the Config/Engine.ini (converted from a legacy Engine.mdf on first touch) with the Engine INI hierarchy over it, so DefaultEngine.ini wins. False when neither exists.