1
0
Fork 0
mirror of https://github.com/Detanup01/gbe_fork.git synced 2025-08-08 08:35:40 +02:00

Merge pull request #264 from universal963/patch-netsocketsfix1

Fix for missing callback and result in `Steam_Networking_Sockets`
This commit is contained in:
universal963 2025-06-28 23:39:41 +08:00 committed by GitHub
commit f08a1e1702
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1243,6 +1243,10 @@ ESteamNetworkingAvailability Steam_Networking_Sockets::InitAuthentication()
{ {
PRINT_DEBUG_TODO(); PRINT_DEBUG_TODO();
std::lock_guard<std::recursive_mutex> lock(global_mutex); std::lock_guard<std::recursive_mutex> lock(global_mutex);
SteamNetAuthenticationStatus_t data{};
data.m_eAvail = k_ESteamNetworkingAvailability_Current;
memcpy(data.m_debugMsg, "OK", 3);
callbacks->addCBResult(data.k_iCallback, &data, sizeof(data));
return k_ESteamNetworkingAvailability_Current; return k_ESteamNetworkingAvailability_Current;
} }
@ -1257,6 +1261,12 @@ ESteamNetworkingAvailability Steam_Networking_Sockets::GetAuthenticationStatus(
{ {
PRINT_DEBUG_TODO(); PRINT_DEBUG_TODO();
std::lock_guard<std::recursive_mutex> lock(global_mutex); std::lock_guard<std::recursive_mutex> lock(global_mutex);
if (pDetails)
{
*pDetails = {};
pDetails->m_eAvail = k_ESteamNetworkingAvailability_Current;
memcpy(pDetails->m_debugMsg, "OK", 3);
}
return k_ESteamNetworkingAvailability_Current; return k_ESteamNetworkingAvailability_Current;
} }