engine/EngineHostCommand.c
// Kill all the search packs until the game path is found. Kill it, then return
// the next path to it.
Kill all the search packs until the game path is found. Kill it, then return
the next path to it.
Kill all the search packs until the game path is found . Kill it then return the next path to it .
void KillGameDir(searchpath_t *search)
{
	searchpath_t *search_killer;
	while (search)
	{
		if (*search->filename)
		{
			com_searchpaths = search->next;
			free(search);
			return; 
		}
		Sys_FileClose (search->pack->handle); 
		search_killer = search->next;
		free(search->pack->files);
		free(search->pack);
		free(search);
		search = search_killer;
	}
}
void KillGameDir ( searchpath_t * search ) { searchpath_t * search_killer ; while ( search ) { if ( * search -> filename ) { com_searchpaths = search -> next ; free ( search ) ; return ; } Sys_FileClose ( search -> pack -> handle ) ; search_killer = search -> next ; free ( search -> pack -> files ) ; free ( search -> pack ) ; free ( search ) ; search = search_killer ; } }
Kill all the search packs until the game path is found.
Kill all the search packs until the game path is found .
//once you hit the dir, youve already freed the paks //johnfitz