mirror of
https://github.com/nillerusr/source-engine.git
synced 2024-12-22 22:27:05 +00:00
32 lines
685 B
C++
32 lines
685 B
C++
//========= Copyright Valve Corporation, All rights reserved. ============//
|
|
//
|
|
// Purpose:
|
|
//
|
|
// $NoKeywords: $
|
|
//
|
|
//=============================================================================//
|
|
#include <stdio.h>
|
|
#include "physdll.h"
|
|
#include "filesystem_tools.h"
|
|
|
|
static CSysModule *pPhysicsModule = NULL;
|
|
CreateInterfaceFn GetPhysicsFactory( void )
|
|
{
|
|
if ( !pPhysicsModule )
|
|
{
|
|
pPhysicsModule = g_pFullFileSystem->LoadModule( "VPHYSICS.DLL" );
|
|
if ( !pPhysicsModule )
|
|
return NULL;
|
|
}
|
|
|
|
return Sys_GetFactory( pPhysicsModule );
|
|
}
|
|
|
|
void PhysicsDLLPath( const char *pPathname )
|
|
{
|
|
if ( !pPhysicsModule )
|
|
{
|
|
pPhysicsModule = g_pFullFileSystem->LoadModule( pPathname );
|
|
}
|
|
}
|