comparison tools/gfxconv.c @ 2242:65a2c2e99c81

Move listing of C64 formats function to argShowC64Formats in lib64util.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 15 Jun 2019 07:55:26 +0300
parents 26f1bae40fb6
children fe974f670d1d
comparison
equal deleted inserted replaced
2241:587eb90459f9 2242:65a2c2e99c81
204 204
205 printf( 205 printf(
206 "\n" 206 "\n"
207 "(Not all input->output combinations are actually supported.)\n" 207 "(Not all input->output combinations are actually supported.)\n"
208 "\n" 208 "\n"
209 "Available C64 bitmap formats (-f <frmt>):\n"
210 " frmt | RW | Type | Description\n"
211 "------+----+-----------------+-------------------------------------\n"
212 ); 209 );
213 210
214 for (int i = 0; i < ndmC64ImageFormats; i++) 211 argShowC64Formats(stdout, TRUE);
215 {
216 const DMC64ImageFormat *fmt = dmC64ImageFormatsSorted[i];
217 char buf[64];
218 printf("%-6s| %c%c | %-15s | %s%s\n",
219 fmt->fext,
220 (fmt->flags & DM_FMT_RD) ? 'R' : ' ',
221 (fmt->flags & DM_FMT_WR) ? 'W' : ' ',
222 dmC64GetImageTypeString(buf, sizeof(buf), fmt->format->type, FALSE),
223 fmt->name,
224 fmt->flags & DM_FMT_BROKEN ? " [BROKEN]" : "");
225 }
226 printf("%d formats supported.\n", ndmC64ImageFormats);
227 } 212 }
228 213
229 214
230 void argShowHelp() 215 void argShowHelp()
231 { 216 {