MCPcopy Create free account
hub / github.com/ValveSoftware/GameNetworkingSockets / TEST_InitLog

Function TEST_InitLog

tests/test_common.cpp:95–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95void TEST_InitLog( const char *pszFilename )
96{
97 if ( g_logTimeZero )
98 return;
99
100 g_logTimeZero = SteamNetworkingUtils()->GetLocalTimestamp();
101
102 SteamNetworkingUtils()->SetDebugOutputFunction( k_ESteamNetworkingSocketsDebugOutputType_Debug, DebugOutput );
103
104 SteamNetworkingUtils()->SetGlobalConfigValueInt32( k_ESteamNetworkingConfig_LogLevel_P2PRendezvous, k_ESteamNetworkingSocketsDebugOutputType_Verbose );
105
106 if ( !g_fpLog )
107 g_fpLog = fopen( pszFilename, "wt" );
108}
109
110void TEST_Init( const SteamNetworkingIdentity *pIdentity )
111{

Callers 2

mainFunction · 0.85
TEST_InitFunction · 0.85

Calls 4

SteamNetworkingUtilsFunction · 0.85
GetLocalTimestampMethod · 0.80

Tested by

no test coverage detected