mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 19:58:53 +00:00
Config: Flatten structures
Originally, Layer contained a std::map of Sections, which containted a std::map containing the (key, value) pairs. Here we flattern this structure so that only one std::map is required, reducing the number of indirections required and vastly simplifying the code.
This commit is contained in:
parent
f3b52c07d7
commit
4c24629b95
13 changed files with 220 additions and 551 deletions
|
@ -133,7 +133,7 @@ LayerType GetActiveLayerForConfig(const ConfigLocation& config)
|
|||
if (!LayerExists(layer))
|
||||
continue;
|
||||
|
||||
if (GetLayer(layer)->Exists(config.system, config.section, config.key))
|
||||
if (GetLayer(layer)->Exists(config))
|
||||
return layer;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue