else cout << "Creating new palette file '" << palname << "' using first file's palette" << endl;
static void Create	(	char *imagename,		// Image archive name.	char *palname,			// Palettes file (palettes.flx).	Shape_specs& specs,		// List of things to extract.	const char *title		// For storing in Flex file.	)	{	if (U7exists(palname))		// Palette?		{		cout << "Palette file '" << palname << 			"' exists, so we won't overwrite it" << endl;		palname = 0;		}	else		cout << "Creating new palette file '" << palname <<			"' using first file's palette" << endl;	ofstream out;	U7open(out, imagename);		// May throw exception.	Flex_writer writer(out, title, specs.size());	for (Shape_specs::const_iterator it = specs.begin();						it != specs.end();  ++it)		{		int shnum = it - specs.begin();		char *basename = (*it).filename;		if (basename)		// Not empty?			{			Write_exult(out, basename, (*it).nframes, (*it).flat,								palname);			palname = 0;	// Only write 1st palette.			}		writer.mark_section_done();		}	if (!writer.close())		throw file_write_exception(imagename);	}