| 98 | } |
| 99 | |
| 100 | static ESteamNetworkingSocketsDebugOutputType ParseLogLevelValue( const char *pszArg, const char *pszSwitchName ) |
| 101 | { |
| 102 | if ( !strcmp( pszArg, "msg" ) ) |
| 103 | return k_ESteamNetworkingSocketsDebugOutputType_Msg; |
| 104 | if ( !strcmp( pszArg, "verbose" ) ) |
| 105 | return k_ESteamNetworkingSocketsDebugOutputType_Verbose; |
| 106 | if ( !strcmp( pszArg, "debug" ) ) |
| 107 | return k_ESteamNetworkingSocketsDebugOutputType_Debug; |
| 108 | |
| 109 | TEST_Fatal( "Invalid %s '%s'. Expected one of: msg, verbose, debug", pszSwitchName, pszArg ); |
| 110 | return k_ESteamNetworkingSocketsDebugOutputType_Msg; |
| 111 | } |
| 112 | |
| 113 | void Quit( int rc ) |
| 114 | { |