mirror of
https://github.com/Gigaslav/HL2Overcharged.git
synced 2026-01-01 09:48:38 +03:00
32 lines
669 B
C++
32 lines
669 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);
|
|
}
|
|
}
|