mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-11 12:58:43 +02:00
![]() Getting and setting configuration from the base config layer are common and repetitive tasks. This commit adds some simpler to use functions to make the new system easier to work with. Config::Get and Config::Set are intended to make switching from SConfig a bit less painful. They always operate on the main system. Example usage: // before auto base_layer = Config::GetLayer(Config::LayerType::Base); auto core = base_layer->GetOrCreateSection(Config::System::Main, "Core"); u8 language; core->Get("Language", &language, 0); SetData("IPL.LNG", language); // now auto base_layer = Config::GetLayer(Config::LayerType::Base); auto core = base_layer->GetOrCreateSection(Config::System::Main, "Core"); SetData("IPL.LNG", core->Get<u8>("Language", 0)); // or simply SetData("IPL.LNG", Config::Get<u8>("Core", "Language", 0)); |
||
---|---|---|
.. | ||
AudioCommon | ||
Common | ||
Core | ||
DiscIO | ||
DolphinQt2 | ||
DolphinWX | ||
InputCommon | ||
UICommon | ||
VideoBackends | ||
VideoCommon | ||
CMakeLists.txt |