//------------------------------------------------------------------------- // Get All charts //------------------------------------------------------------------------- void CFuiListPlan::FillOneList(char *ext) { char fn[MAX_PATH]; sprintf(fn,"CHARTS/*.%s",ext); //--- Get all JPG files in the list -------------- char *name = (char*)pfindfirst (&globals->pfs,fn); while (name) { char *deb = strrchr(name,'/'); if (deb) AddChart(deb+1); name = (char*)pfindnext(&globals->pfs); } //--- Get All PNG files in the list -------------- return; }
//------------------------------------------------------------------------- // Decode all NFO files to select aircraft parameters // The first entry is a fixed slot with current aircraft if // it matches the filter //------------------------------------------------------------------------- void CFuiSetAir::ScanAllNFO() { CVehicleObject *veh = globals->pln; cPlane = ""; if (veh) { CVehicleInfo *inf = veh->nfo; cPlane = inf->GetVehMake(); airInfo.SetClass(inf->GetVehClass()); airInfo.SetMake (inf->GetVehMake()); airInfo.SetIcon (inf->GetVehIcon()); airInfo.SetComplete(); MakeSlot("",false,veh->GetNFOname()); } const char *nfo = pfindfirst(&globals->pfs, "*.NFO"); while (nfo) { if (airInfo.ScanInfoFile(nfo)) MakeSlot(cPlane,true,(char*)nfo); nfo = pfindnext (&globals->pfs); } airBOX.SortAndDisplay(); return; }