diff options
| author | Léo Lam <leo@leolam.fr> | 2021-02-26 01:56:01 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-26 01:56:01 +0100 |
| commit | 9d0983c9c988f81c73c9a4ed61835ca9ac20db06 (patch) | |
| tree | 2c6cdafd5b7ce1d3dd828873dc94c76ffbb52d5b /Source/Core/InputCommon/ControllerInterface/DualShockUDPClient/DualShockUDPClient.cpp | |
| parent | 092009761494d6c42118c62bfe995fc83286d269 (diff) | |
| parent | e020b2e8ea180aa647b698eaf34354f0b6df493a (diff) | |
Merge pull request #9536 from Filoppi/config_fixes
Don't call OnConfigChanged() unless config actually changed
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/DualShockUDPClient/DualShockUDPClient.cpp')
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/DualShockUDPClient/DualShockUDPClient.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/DualShockUDPClient/DualShockUDPClient.cpp b/Source/Core/InputCommon/ControllerInterface/DualShockUDPClient/DualShockUDPClient.cpp index 61ac7b1318..d5468e4e7b 100644 --- a/Source/Core/InputCommon/ControllerInterface/DualShockUDPClient/DualShockUDPClient.cpp +++ b/Source/Core/InputCommon/ControllerInterface/DualShockUDPClient/DualShockUDPClient.cpp @@ -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() |
