summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/DualShockUDPClient
diff options
context:
space:
mode:
authorFiloppi <filippotarpini@hotmail.it>2021-02-26 01:14:00 +0200
committerFiloppi <filippotarpini@hotmail.it>2021-02-26 01:14:00 +0200
commite020b2e8ea180aa647b698eaf34354f0b6df493a (patch)
tree11bcb5dcb2fa5d2c10c275560497138ceb12b23b /Source/Core/InputCommon/ControllerInterface/DualShockUDPClient
parent1fe0953bd50088891df03c38b27cc3fd2a5196ff (diff)
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
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/DualShockUDPClient')
-rw-r--r--Source/Core/InputCommon/ControllerInterface/DualShockUDPClient/DualShockUDPClient.cpp2
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()