Team Fortress 2 Source Code as on 22/4/2020
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.

31 lines
685 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. //=============================================================================//
  8. #include <stdio.h>
  9. #include "physdll.h"
  10. #include "filesystem_tools.h"
  11. static CSysModule *pPhysicsModule = NULL;
  12. CreateInterfaceFn GetPhysicsFactory( void )
  13. {
  14. if ( !pPhysicsModule )
  15. {
  16. pPhysicsModule = g_pFullFileSystem->LoadModule( "VPHYSICS.DLL" );
  17. if ( !pPhysicsModule )
  18. return NULL;
  19. }
  20. return Sys_GetFactory( pPhysicsModule );
  21. }
  22. void PhysicsDLLPath( const char *pPathname )
  23. {
  24. if ( !pPhysicsModule )
  25. {
  26. pPhysicsModule = g_pFullFileSystem->LoadModule( pPathname );
  27. }
  28. }