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.

22 lines
884 B

  1. //===== Copyright � 2005-2005, Valve Corporation, All rights reserved. ======//
  2. //
  3. // Purpose: A higher level link library for general use in the game and tools.
  4. //
  5. //===========================================================================//
  6. #include <tier2/tier2.h>
  7. #include "resourceprecacher.h"
  8. #include "datacache/iprecachesystem.h"
  9. CBaseResourcePrecacher *CBaseResourcePrecacher::sm_pFirst[PRECACHE_SYSTEM_COUNT] = { 0 };
  10. //-----------------------------------------------------------------------------
  11. // Registers all resource precachers (created by PRECACHE_ macros) with precache system
  12. //-----------------------------------------------------------------------------
  13. void CBaseResourcePrecacher::RegisterAll()
  14. {
  15. for ( int iSystem = 0; iSystem < PRECACHE_SYSTEM_COUNT; iSystem++ )
  16. {
  17. g_pPrecacheSystem->Register( sm_pFirst[iSystem], (PrecacheSystem_t) iSystem );
  18. }
  19. }