mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 05:38:50 +00:00
Common: don't call OnConfigChanged() unless it has actually changed
DualShock UDP Client is the only place in the code that assumed OnConfigChanged() is called at least once on startup or it won't load up the setting, so I took care of that
This commit is contained in:
parent
1fe0953bd5
commit
e020b2e8ea
3 changed files with 11 additions and 8 deletions
|
@ -381,7 +381,9 @@ void Init()
|
|||
Config::SetBase(Settings::SERVER_PORT, 0);
|
||||
}
|
||||
|
||||
// It would be much better to unbind from this callback on DeInit but it's not possible as of now
|
||||
Config::AddConfigChangedCallback(ConfigChanged);
|
||||
ConfigChanged(); // Call it immediately to load settings
|
||||
}
|
||||
|
||||
void PopulateDevices()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue