Esempio n. 1
0
void makeMenu()
{
	menuPrint(0, 0, "- lolSnes " VERSION " - by Mega-Mario -");
	menuPrint(0, 1, "________________________________");
	
	int i;
	int maxfile;
	
	if ((nfiles - menuscroll) <= 22) maxfile = (nfiles - menuscroll);
	else maxfile = 22;
	
	for (i = 0; i < maxfile; i++)
	{
		menuPrint(0, 2+i, "                                ");
		menuPrint(2, 2+i, &filelist[(menuscroll+i) << 8]);
		if ((menuscroll+i) == menusel)
			menuPrint(0, 2+i, "\x10");
	}
	
	menuPrint(31, 2, "\x1E");
	menuPrint(31, 23, "\x1F");
	for (i = 3; i < 23; i++)
		menuPrint(31, i, "|");
		
	if ((nfiles - menuscroll) <= 22)
		menuPrint(31, 22, "\x08");
	else
		menuPrint(31, 3 + ((menuscroll * 20) / (nfiles - 22)), "\x08");
		
	setMenuSel(2 + menusel - menuscroll);
}
Esempio n. 2
0
int main()
{
	clrscr();
	head=NULL;
	menuPrint();
	getch();
	return(0);
}