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.

70 lines
1.8 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================
  6. #include "mdllib_common.h"
  7. //-----------------------------------------------------------------------------
  8. // Global instance
  9. //-----------------------------------------------------------------------------
  10. CMdlLib mdllib;
  11. EXPOSE_SINGLE_INTERFACE_GLOBALVAR( CMdlLib, IMdlLib, MDLLIB_INTERFACE_VERSION, mdllib );
  12. //-----------------------------------------------------------------------------
  13. // Destructor
  14. //-----------------------------------------------------------------------------
  15. CMdlLib::~CMdlLib()
  16. {
  17. }
  18. //-----------------------------------------------------------------------------
  19. // Connect, disconnect
  20. //-----------------------------------------------------------------------------
  21. bool CMdlLib::Connect( CreateInterfaceFn factory )
  22. {
  23. // g_pFileSystem = (IFileSystem*)factory( FILESYSTEM_INTERFACE_VERSION, NULL );
  24. // return ( g_pFileSystem != NULL );
  25. return true;
  26. }
  27. void CMdlLib::Disconnect()
  28. {
  29. // g_pFileSystem = NULL;
  30. return;
  31. }
  32. //-----------------------------------------------------------------------------
  33. // Purpose: Startup
  34. //-----------------------------------------------------------------------------
  35. InitReturnVal_t CMdlLib::Init()
  36. {
  37. return INIT_OK;
  38. }
  39. //-----------------------------------------------------------------------------
  40. // Purpose: Cleanup
  41. //-----------------------------------------------------------------------------
  42. void CMdlLib::Shutdown()
  43. {
  44. return;
  45. }
  46. //-----------------------------------------------------------------------------
  47. // Query interface
  48. //-----------------------------------------------------------------------------
  49. void *CMdlLib::QueryInterface( const char *pInterfaceName )
  50. {
  51. return Sys_GetFactoryThis()( pInterfaceName, NULL );
  52. }