//----------------------------------------------------------------------------- // Purpose: Initialize the steam3 connection //----------------------------------------------------------------------------- void CClientSteamContext::Activate() { if ( m_bActive ) return; m_bActive = true; #if !defined( NO_STEAM ) SteamAPI_InitSafe(); // ignore failure, that will fall out later when they don't get a valid logon cookie SteamAPI_SetTryCatchCallbacks( false ); // We don't use exceptions, so tell steam not to use try/catch in callback handlers Init(); // Steam API context init UpdateLoggedOnState(); Msg( "CClientSteamContext logged on = %d\n", m_bLoggedOn ); #endif }
SB_API void S_CALLTYPE SetTryCatchCallbacks(bool bTryCatchCallbacks) { SteamAPI_SetTryCatchCallbacks(bTryCatchCallbacks); }