#include <allegro.h> static char *cpu_fam[]={"8086","8087","286","386","486","Pentium","Pentium Pro","Pentium II"}; void sstn_system() { char tbuf[100]; clear_keybuf(); check_cpu(); if(cpu_fpu==FALSE) return; /* */ show_mouse(0); text_mode(-1); tdbox1(screen,170,140,300,200,6); textout_centre(screen,font,"SYSTEM INFO",320,147,255); tdhline(screen,172,160,468); textout_centre(screen,font,"CPU",320,170,200); tbuf[0]=0; strcat(tbuf,cpu_fam[cpu_family]); strcat(tbuf," - "); strcat(tbuf,cpu_vendor); textout_centre(screen,font,tbuf,319,189,100); textout_centre(screen,font,tbuf,320,190,0); tbuf[0]=0; if(cpu_mmx==TRUE) strcat(tbuf,"MMX"); if(cpu_3dnow==TRUE) strcat(tbuf,", 3Dnow!"); textout_centre(screen,font,tbuf,319,199,100); textout_centre(screen,font,tbuf,320,200,0); textout_centre(screen,font,"GRAPHICS CARD",320,220,200); textout_centre(screen,font,gfx_driver->name,319,239,100); textout_centre(screen,font,gfx_driver->name,320,240,0); sprintf(tbuf,"Memory: %d kB",gfx_driver->vid_mem/1024); textout_centre(screen,font,tbuf,319,249,100); textout_centre(screen,font,tbuf,320,250,0); textout_centre(screen,font,"SOUND CARD",320,270,200); install_sound(-1,-1,0); sprintf(tbuf,"Digi: %s",digi_driver->name); textout_centre(screen,font,tbuf,319,289,100); textout_centre(screen,font,tbuf,320,290,0); sprintf(tbuf,"Midi: %s",midi_driver->name); textout_centre(screen,font,tbuf,319,299,100); textout_centre(screen,font,tbuf,320,300,0); remove_sound(); textout_centre(screen,font,"Press any key",319,319,100); textout_centre(screen,font,"Press any key",320,320,150); show_mouse(screen); readkey(); clear_keybuf(); }