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

//===== Copyright © 2005-2005, Valve Corporation, All rights reserved. ======//
//
// Purpose: A higher level link library for general use in the game and tools.
//
//===========================================================================//
#include <tier2/tier2.h>
#include "resourceprecacher.h"
#include "datacache/iprecachesystem.h"
CBaseResourcePrecacher *CBaseResourcePrecacher::sm_pFirst[PRECACHE_SYSTEM_COUNT] = { 0 };
//-----------------------------------------------------------------------------
// Registers all resource precachers (created by PRECACHE_ macros) with precache system
//-----------------------------------------------------------------------------
void CBaseResourcePrecacher::RegisterAll()
{
for ( int iSystem = 0; iSystem < PRECACHE_SYSTEM_COUNT; iSystem++ )
{
g_pPrecacheSystem->Register( sm_pFirst[iSystem], (PrecacheSystem_t) iSystem );
}
}