launcher/launcher.cpp
void TryToLoadSteamOverlayDLL()
{
#if defined( WIN32 ) && !defined( _X360 )
	// First, check if the module is already loaded, perhaps because we were run from Steam directly
	HMODULE hMod = GetModuleHandle( "GameOverlayRenderer.dll" );
	if ( hMod )
	{
		return;
	}

	const char *pchSteamInstallPath = SteamAPI_GetSteamInstallPath();
	if ( pchSteamInstallPath )
	{
		char rgchSteamPath[MAX_PATH];
		V_ComposeFileName( pchSteamInstallPath, "GameOverlayRenderer.dll", rgchSteamPath, Q_ARRAYSIZE(rgchSteamPath) );
		// This could fail, but we can't fix it if it does so just ignore failures
		LoadLibrary( rgchSteamPath );
	}
#endif
}
//-----------------------------------------------------------------------------
// Purpose: Figure out if Steam is running, then load the GameOverlayRenderer.dll
//-----------------------------------------------------------------------------
Figure out if Steam is running, then load the GameOverlayRenderer.dll
Figure out if Steam is running then load the GameOverlayRenderer . dll
void TryToLoadSteamOverlayDLL()
{
#if defined( WIN32 ) && !defined( _X360 )
	HMODULE hMod = GetModuleHandle( "GameOverlayRenderer.dll" );
	if ( hMod )
	{
		return;
	}
	const char *pchSteamInstallPath = SteamAPI_GetSteamInstallPath();
	if ( pchSteamInstallPath )
	{
		char rgchSteamPath[MAX_PATH];
		V_ComposeFileName( pchSteamInstallPath, "GameOverlayRenderer.dll", rgchSteamPath, Q_ARRAYSIZE(rgchSteamPath) );
		LoadLibrary( rgchSteamPath );
	}
#endif
}
void TryToLoadSteamOverlayDLL ( ) { #if defined ( WIN32 ) && ! defined ( _X360 ) HMODULE hMod = GetModuleHandle ( " " ) ; if ( hMod ) { return ; } const char * pchSteamInstallPath = SteamAPI_GetSteamInstallPath ( ) ; if ( pchSteamInstallPath ) { char rgchSteamPath [ MAX_PATH ] ; V_ComposeFileName ( pchSteamInstallPath , " " , rgchSteamPath , Q_ARRAYSIZE ( rgchSteamPath ) ) ; LoadLibrary ( rgchSteamPath ) ; } #endif }
Purpose: Figure out if Steam is running, then load the GameOverlayRenderer.dll
Purpose : Figure out if Steam is running then load the GameOverlayRenderer . dll
// First, check if the module is already loaded, perhaps because we were run from Steam directly // This could fail, but we can't fix it if it does so just ignore failures