Skip to content

Commit 42869ab

Browse files
committed
temporary fix 2
1 parent ef8cdb4 commit 42869ab

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

sources/libcore/network/steam.cpp

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,24 @@ namespace cage
161161
};
162162
static InitializerConfiguration initializerConfiguration;
163163

164+
#if defined(CAGE_USE_STEAM_SDK)
165+
struct InitializerAuthentication
166+
{
167+
InitializerAuthentication()
168+
{
169+
ESteamNetworkingAvailability a = sockets->InitAuthentication();
170+
while (!networkingAvailable(a))
171+
{
172+
threadSleep(5'000);
173+
SteamAPI_RunCallbacks();
174+
SteamGameServer_RunCallbacks();
175+
a = sockets->GetAuthenticationStatus(nullptr);
176+
}
177+
}
178+
};
179+
static InitializerAuthentication initializerAuthentication;
180+
#endif
181+
164182
if (useRelay)
165183
{
166184
#if defined(CAGE_USE_STEAM_SDK)

0 commit comments

Comments
 (0)