51 lines
969 B
C++
51 lines
969 B
C++
//===== Copyright © 1996-2009, Valve Corporation, All rights reserved. ======//
|
|
//
|
|
// Purpose:
|
|
//
|
|
//===========================================================================//
|
|
|
|
#include "mm_title.h"
|
|
#include "../mm_title_main.h"
|
|
|
|
#include "fmtstr.h"
|
|
|
|
// memdbgon must be the last include file in a .cpp file!!!
|
|
#include "tier0/memdbgon.h"
|
|
|
|
LINK_MATCHMAKING_LIB();
|
|
|
|
static CMatchTitle g_MatchTitle;
|
|
CMatchTitle *g_pMatchTitle = &g_MatchTitle;
|
|
|
|
IMatchTitle *g_pIMatchTitle = g_pMatchTitle;
|
|
IMatchEventsSink *g_pIMatchTitleEventsSink = g_pMatchTitle;
|
|
|
|
|
|
|
|
//
|
|
// Init / shutdown
|
|
//
|
|
|
|
InitReturnVal_t MM_Title_Init()
|
|
{
|
|
return g_pMatchTitle->Init();
|
|
}
|
|
|
|
void MM_Title_Shutdown()
|
|
{
|
|
if ( g_pMatchTitle )
|
|
g_pMatchTitle->Shutdown();
|
|
}
|
|
|
|
#if defined( _X360 ) && defined( _DEBUG )
|
|
CON_COMMAND( x_dbg_xgi, "Set X360 XGI debug output level" )
|
|
{
|
|
int iLevel = args.FindArgInt( "-level", -1 );
|
|
if ( iLevel >= 0 )
|
|
{
|
|
XDebugSetSystemOutputLevel( HXAMAPP_XGI, iLevel );
|
|
}
|
|
}
|
|
#endif
|
|
|