dolphin/Source
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
..
Android Core: Convert State enum into an enum class 2017-02-05 08:32:23 -05:00
Core Config: Add a few helper functions for repetitive tasks 2017-02-23 18:15:12 +01:00
DSPSpy Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
DSPTool DSP: Namespace remaining un-namespaced DSP code 2016-12-31 17:20:14 -05:00
PCH Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
UnitTests Merge pull request #4809 from Orphis/cmake_windows 2017-02-03 08:33:13 -05:00
VSProps Merge pull request #4408 from leoetlino/usb 2017-02-07 09:17:05 +13:00
.clang-format clang-format: Sort windows.h before other headers 2017-01-23 00:35:09 -08:00
CMakeLists.txt CMake: use _SCL_SECURE_NO_WARNINGS instead of _SECURE_SCL=0 2017-02-10 16:28:39 -08:00
dolphin-emu.sln Implement experimental Vulkan backend 2016-10-01 02:40:01 +10:00