csgo-2018-source/mdllib/mdllib.cpp
2021-07-24 21:11:47 -07:00

73 lines
1.9 KiB
C++

//====== Copyright © 1996-2005, Valve Corporation, All rights reserved. =======
//
// Purpose:
//
//=============================================================================
#include "mdllib_common.h"
#include "tier3/tier3.h"
//-----------------------------------------------------------------------------
// Global instance
//-----------------------------------------------------------------------------
CMdlLib s_Mdllib;
EXPOSE_SINGLE_INTERFACE_GLOBALVAR( CMdlLib, IMdlLib, MDLLIB_INTERFACE_VERSION, s_Mdllib );
//-----------------------------------------------------------------------------
// Destructor
//-----------------------------------------------------------------------------
CMdlLib::~CMdlLib()
{
}
//-----------------------------------------------------------------------------
// Connect, disconnect
//-----------------------------------------------------------------------------
bool CMdlLib::Connect( CreateInterfaceFn factory )
{
// g_pFileSystem = (IFileSystem*)factory( FILESYSTEM_INTERFACE_VERSION, NULL );
// return ( g_pFileSystem != NULL );
return true;
}
void CMdlLib::Disconnect()
{
// g_pFileSystem = NULL;
return;
}
//-----------------------------------------------------------------------------
// Purpose: Startup
//-----------------------------------------------------------------------------
InitReturnVal_t CMdlLib::Init()
{
return INIT_OK;
}
//-----------------------------------------------------------------------------
// Purpose: Cleanup
//-----------------------------------------------------------------------------
void CMdlLib::Shutdown()
{
return;
}
//-----------------------------------------------------------------------------
// Query interface
//-----------------------------------------------------------------------------
void *CMdlLib::QueryInterface( const char *pInterfaceName )
{
return Sys_GetFactoryThis()( pInterfaceName, NULL );
}