Modified source engine (2017) developed by valve and leaked in 2020. Not for commercial purporses
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

71 lines
1.8 KiB

5 years ago
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================
#include "mdllib_common.h"
//-----------------------------------------------------------------------------
// Global instance
//-----------------------------------------------------------------------------
CMdlLib mdllib;
EXPOSE_SINGLE_INTERFACE_GLOBALVAR( CMdlLib, IMdlLib, MDLLIB_INTERFACE_VERSION, 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 );
}