

search_path=.;c:\nagi\games;
; how many levels down does it search?
levels=2

make a list of games/paths/names that exist and are proper agi games

algorithm for detection of games:
{
	find appropriate file arrangement first
	if found, generate crc's
	compare crc's
	if equal.. standard = that
	if not, determine if v2 or v3
		if v2.. = v2_standard
		if v3 = v3_standard
}


file arrangement detection
{
	look for object (same across all versions)
	look for words.tok (same across all versions)

	look for vol.0
	if exists
	{ then v2 or amiga
		
	}
	else
	{
		v3 pc
	}
	

}


struct agicrc_struct
{
	u32 crc_obj;
	u32 crc_words;
	
	u32 crc_dircomb;
	u32 crc_dirlog;
	u32 crc_dirpic;
	u32 crc_dirview;
	u32 crc_dirsnd;

	u32 vol[16];
};
typedef struct agicrc_struct AGICRC;

structure for a found game:
game list
{
	GAMELIST *next;
	u8 diz[80];
	u8 *standard;	// pointer to standard list in loaded ini file
	DIR *path;	// path in whatever format it turns out to be
	u8 flags;	// bit 0 = dir1,4  bit1=gameid in front of vol,dir
};

if only one game found.. 
{
	play it.. no menus
}
else
{
	display a menu
	play,restore,quit,info,cheat,dump crc,last played
	play game
}

return to menu or quit if one game







