Example #1
0
void	PackageList::SaveBin()
{
    File_Man.DiscardDirList(FIL_RUNTIMEPACK0);
    FileNum	fnum=FIL_RUNTIMEPACK0;
    for (int packs=0;packs<Profile::MAX_PACKS;packs++)
        if (pack[packs][0][0].uid)
        {
            BOStream f(File_Man.namenumberedfile(fnum));
            SaveBin(&packs[pack],f);
            fnum=FileNum(fnum+1);
        }
}
Example #2
0
void	PackageList::SaveBin()
{
	File_Man.DiscardDirList(FIL_RUNTIMEPACK0);
	BuildReorderTable();
	FileNum	fnum=FIL_RUNTIMEPACK0;
	for (int packs=0;packs<Profile::MAX_PACKS;packs++)
		if (pack[packs].packagestatus!=Profile::PS_SPARE && pack[packs].wpsused)
		{
			if (Todays_Packages[packs][0].diaryentry == -1)		//RJS 27Jan00
			{
				for (int s=0,max=Todays_Packages[packs].squadlist;s<max;s++)
					MMC.thisweekreview.Note(Todays_Packages[packs][s].Squadron().AcType(),PeriodReview::SORTIES,Todays_Packages[packs][s].numacoriginal);
				Squad_Diary.CreateEntry(Todays_Packages,packs);	//RJS 27Jan00
			}

			BOStream f(File_Man.namenumberedfile(fnum));
			SaveBin(&pack[packs],f);
			fnum=FileNum(fnum+1);
		}
}