Source/ThunderBeast/QuakeToon/qcommon/files.c
char *FS_NextPath (char *prevpath)
{
	searchpath_t	*s;
	char			*prev;

	if (!prevpath)
		return fs_gamedir;

	prev = fs_gamedir;
	for (s=fs_searchpaths ; s ; s=s->next)
	{
		if (s->pack)
			continue;
		if (prevpath == prev)
			return s->filename;
		prev = s->filename;
	}

	return NULL;
}
/*
================
FS_NextPath

Allows enumerating all of the directories in the search path
================
*/
FS_NextPath
Allows enumerating all of the directories in the search path
FS_NextPath Allows enumerating all of the directories in the search path
char *FS_NextPath (char *prevpath)
{
	searchpath_t	*s;
	char			*prev;
	if (!prevpath)
		return fs_gamedir;
	prev = fs_gamedir;
	for (s=fs_searchpaths ; s ; s=s->next)
	{
		if (s->pack)
			continue;
		if (prevpath == prev)
			return s->filename;
		prev = s->filename;
	}
	return NULL;
}
char * FS_NextPath ( char * prevpath ) { searchpath_t * s ; char * prev ; if ( ! prevpath ) return fs_gamedir ; prev = fs_gamedir ; for ( s = fs_searchpaths ; s ; s = s -> next ) { if ( s -> pack ) continue ; if ( prevpath == prev ) return s -> filename ; prev = s -> filename ; } return NULL ; }
FS_NextPath
Allows enumerating all of the directories in the search path
FS_NextPath Allows enumerating all of the directories in the search path