mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 05:40:01 -06:00
Config: Make Load() and Save() slightly faster
Only invoke config changed callbacks from Config::Save, not Layer::Save. The latter results in callbacks being called once per layer, up to 7 times per save.
This commit is contained in:
@ -62,12 +62,14 @@ void Load()
|
||||
{
|
||||
for (auto& layer : s_layers)
|
||||
layer.second->Load();
|
||||
InvokeConfigChangedCallbacks();
|
||||
}
|
||||
|
||||
void Save()
|
||||
{
|
||||
for (auto& layer : s_layers)
|
||||
layer.second->Save();
|
||||
InvokeConfigChangedCallbacks();
|
||||
}
|
||||
|
||||
void Init()
|
||||
|
Reference in New Issue
Block a user