mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-08 16:01:42 +12:00
cfg: simplify get_nodes
This commit is contained in:
parent
cb9e7358d2
commit
2c05e9719d
5 changed files with 18 additions and 18 deletions
|
@ -196,9 +196,9 @@ void emu_settings::ValidateSettings()
|
|||
|
||||
if (cfg_base && cfg_base->get_type() == cfg::type::node)
|
||||
{
|
||||
for (const auto& [name, node] : static_cast<const cfg::node*>(cfg_base)->get_nodes())
|
||||
for (const auto& node : static_cast<const cfg::node*>(cfg_base)->get_nodes())
|
||||
{
|
||||
if (name == keys[level])
|
||||
if (node->get_name() == keys[level])
|
||||
{
|
||||
cfg_node = node;
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue