Counter Strike : Global Offensive Source Code
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.

72 lines
1.9 KiB

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