components/prboom/w_wad.c
// CPhipps - size of the wadfiles array (dynamic, no limit)
size of the wadfiles array (dynamic, no limit)
size of the wadfiles array ( dynamic no limit )
void W_Init(void)
{
  numlumps = 0; lumpinfo = NULL;
  { 
    int i;
    for (i=0; (size_t)i<numwadfiles; i++)
      W_AddFile(&wadfiles[i]);
  }
  if (!numlumps)
    I_Error ("W_Init: No files found");
  W_CoalesceMarkedResource("S_START", "S_END", ns_sprites);
  W_CoalesceMarkedResource("F_START", "F_END", ns_flats);
  W_CoalesceMarkedResource("C_START", "C_END", ns_colormaps);
  W_CoalesceMarkedResource("B_START", "B_END", ns_prboom);
  W_HashLumps();
  lprintf(LO_INFO,"W_InitCache\n");
  W_InitCache();
}
void W_Init ( void ) { numlumps = 0 ; lumpinfo = NULL ; { int i ; for ( i = 0 ; ( size_t ) i < numwadfiles ; i ++ ) W_AddFile ( & wadfiles [ i ] ) ; } if ( ! numlumps ) I_Error ( " " ) ; W_CoalesceMarkedResource ( " " , " " , ns_sprites ) ; W_CoalesceMarkedResource ( " " , " " , ns_flats ) ; W_CoalesceMarkedResource ( " " , " " , ns_colormaps ) ; W_CoalesceMarkedResource ( " " , " " , ns_prboom ) ; W_HashLumps ( ) ; lprintf ( LO_INFO , " \n " ) ; W_InitCache ( ) ; }
CPhipps - size of the wadfiles array (dynamic, no limit)
CPhipps - size of the wadfiles array ( dynamic no limit )
// CPhipps - start with nothing // CPhipps - new wadfiles array used  // open all the files, load headers, and count lumps //jff 1/23/98 // get all the sprites and flats into one marked block each // killough 1/24/98: change interface to use M_START/M_END explicitly // killough 4/17/98: Add namespace tags to each entry // killough 4/4/98: add colormap markers // killough 1/31/98: initialize lump hash table /* cph 2001/07/07 - separated cache setup */