mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-01-04 00:23:25 +08:00
32 lines
729 B
C++
32 lines
729 B
C++
//========= Copyright © 1996-2005, 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 );
|
|
}
|
|
}
|