XMIDI midfile(midi_data, false);
XMIDI midfile(midi_data, XMIDI_CONVERT_NOCONVERSION);
Exult_Game exult_menu(Game_window *gwin){	Image_window8 *win = gwin->get_win();	int topx = (gwin->get_width()-320)/2;	int topy = (gwin->get_height()-200)/2;	int centerx = gwin->get_width()/2;	int centery = gwin->get_height()/2;	int menuy = topy+120;	Palette pal;	char *mid_buf;	size_t len;	fontManager.add_font("CREDITS_FONT", "<DATA>/exult.flx", 9, 1);	U7object banner_midi("<DATA>/exult.flx", 8);	banner_midi.retrieve(&mid_buf, len);	BufferDataSource *midi_data = new BufferDataSource(mid_buf, len);	XMIDI midfile(midi_data, false);	audio->start_music(&midfile, true);	Vga_file exult_flx("<DATA>/exult.flx");		gwin->paint_shape(topx,topy,exult_flx.get_shape(4, 0));	pal.load("<DATA>/exult.flx",5);	pal.fade_in(30);	wait_delay(2000);	MenuList *menu = new MenuList();			int menuchoices[] = { 0x06, 0x07, 0x01, 0x00 };	int num_choices = sizeof(menuchoices)/sizeof(int);			for(int i=0; i<num_choices; i++) {		menu->add_entry(new MenuEntry(exult_flx.get_shape(menuchoices[i],1),					      exult_flx.get_shape(menuchoices[i],0),					      centerx, menuy+i*11));	}	menu->set_selected(0);	Exult_Game sel_game = NONE;	do {		gwin->paint_shape(topx,topy,exult_flx.get_shape(4, 1));		switch(menu->handle_events(gwin)) {		case -1: // Exit			pal.fade_out(30);			exit(0);		case 0: // Black Gate			pal.fade_out(30);			sel_game = BLACK_GATE;			break;		case 1: // Serpent Isle			pal.fade_out(30);			sel_game = SERPENT_ISLE;			break;		case 2: // Exult Credits			{				pal.fade_out(30);				TextScroller credits("<DATA>/exult.flx", 0x03, 						     fontManager.get_font("CREDITS_FONT"),						     0);				credits.run(gwin,pal);				gwin->clear_screen();				pal.apply();			}			break;		case 3: // Exult Quotes			{				pal.fade_out(30);				TextScroller quotes("<DATA>/exult.flx", 0x02, 						    fontManager.get_font("CREDITS_FONT"),			     			    0);				quotes.run(gwin,pal);				gwin->clear_screen();				pal.apply();			}			break;		default:			break;		}	} while(sel_game==NONE);	delete menu;		gwin->clear_screen();	audio->stop_music();		return sel_game;}