Showing the changes to interface/src/DiscoverabilityManager.cpp (1 of 18 files). Show all
Unified · Split
| @@ -15,7 +15,8 @@ · 14 unmodified lines | |||
| 15 | #include <AddressManager.h> | 15 | #include <AddressManager.h> |
| 16 | #include <DomainHandler.h> | 16 | #include <DomainHandler.h> |
| 17 | #include <NodeList.h> | 17 | #include <NodeList.h> |
| 18 | #include <steamworks-wrapper/SteamClient.h> | 18 | #include <plugins/PluginManager.h> |
| 19 | #include <plugins/SteamClientPlugin.h> | ||
| 19 | #include <UserActivityLogger.h> | 20 | #include <UserActivityLogger.h> |
| 20 | #include <UUID.h> | 21 | #include <UUID.h> |
| 21 | 22 | ||
| @@ -111,7 +112,9 @@ void DiscoverabilityManager::updateLocation() { · 89 unmodified lines | |||
| 111 | } | 112 | } |
| 112 | 113 | ||
| 113 | // Update Steam | 114 | // Update Steam |
| 114 | SteamClient::updateLocation(domainHandler.getHostname(), addressManager->currentFacingShareableAddress()); | 115 | if (auto steamClient = PluginManager::getInstance()->getSteamClientPlugin()) { |
| 116 | steamClient->updateLocation(domainHandler.getHostname(), addressManager->currentFacingShareableAddress()); | ||
| 117 | } | ||
| 115 | } | 118 | } |
| 116 | 119 | ||
| 117 | void DiscoverabilityManager::handleHeartbeatResponse(QNetworkReply& requestReply) { | 120 | void DiscoverabilityManager::handleHeartbeatResponse(QNetworkReply& requestReply) { |