engine/EngineHostCommand.c
/*	List all potential mod directories (contain either a pak file or a progs.dat)
*/
List all potential mod directories (contain either a pak file or a progs.dat)
List all potential mod directories ( contain either a pak file or a progs . dat )
void Host_Mods_f(void)
{
	int			i;
	mod_t		*mod;
	static bool	bListUpdated = false;
	if(!bListUpdated)
	{
		Modlist_Init();
		bListUpdated = true;
	}
	for (mod = modlist, i=0; mod; mod = mod->next, i++)
		Con_SafePrintf ("   %s\n", mod->name);
	if (i)
		Con_SafePrintf ("%i mod(s)\n", i);
	else
		Con_SafePrintf ("no mods found\n");
}
void Host_Mods_f ( void ) { int i ; mod_t * mod ; static bool bListUpdated = false ; if ( ! bListUpdated ) { Modlist_Init ( ) ; bListUpdated = true ; } for ( mod = modlist , i = 0 ; mod ; mod = mod -> next , i ++ ) Con_SafePrintf ( " \n " , mod -> name ) ; if ( i ) Con_SafePrintf ( " \n " , i ) ; else Con_SafePrintf ( " \n " ) ; }
List all potential mod directories (contain either a pak file or a progs.dat)
List all potential mod directories ( contain either a pak file or a progs . dat )