MCPcopy Create free account
hub / github.com/Rat431/ColdAPI_Steam / ContextInitializzation

Function ContextInitializzation

src/ColdAPI_Steam/ColdManager.cpp:2543–2553  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2541 }
2542 }
2543 void* ContextInitializzation(void* Input)
2544 {
2545 int32_t hUser = SteamAPI_GetHSteamUser();
2546 SteamContext* Sctx = (SteamContext*)Input;
2547 if (Sctx->Flag != hUser) // Check if the context isn't already initialized
2548 {
2549 Sctx->Flag = hUser;
2550 ((void(*)(void*))Sctx->InitContext)(&Sctx->Out);
2551 }
2552 return (void*)&Sctx->Out;
2553 }
2554 bool ReadIni()
2555 {
2556 char SteamORG[MAX_PATH] = { 0 };

Callers 1

Calls 1

SteamAPI_GetHSteamUserFunction · 0.85

Tested by

no test coverage detected