dolphin/Source/Core
Léo Lam abe6f8766a Config: Add a few helper functions for repetitive tasks
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));
2017-02-23 18:15:12 +01:00
..
AudioCommon C++ conformance fixes (MSVC /permissive-) 2017-02-15 20:37:04 -08:00
Common Config: Add a few helper functions for repetitive tasks 2017-02-23 18:15:12 +01:00
Core Merge pull request #4941 from JosJuice/no-compressed-color 2017-02-23 07:17:48 -08:00
DiscIO Forward declare IBlobReader in Volume headers 2017-02-19 08:40:30 +01:00
DolphinQt2 Use .manifest file for apps on Windows 2017-02-10 14:18:45 -08:00
DolphinWX Merge pull request #4941 from JosJuice/no-compressed-color 2017-02-23 07:17:48 -08:00
InputCommon Add missing "functional" include 2017-02-20 14:25:55 +00:00
UICommon Fix LLVM error 2017-02-10 19:07:30 -08:00
VideoBackends Merge pull request #4924 from stenzek/vulkan-list-restart 2017-02-18 21:58:30 +10:00
VideoCommon Merge pull request #4924 from stenzek/vulkan-list-restart 2017-02-18 21:58:30 +10:00
CMakeLists.txt