comparison tools/lib64util.c @ 2602:a4f6584edca9

Hopefully improve the use-cases for 64vw "-l" option by also listing files that are not recognized.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 19 Nov 2023 20:02:03 +0200
parents 9807ae37ad69
children
comparison
equal deleted inserted replaced
2601:8b99ddcc9fde 2602:a4f6584edca9
131 131
132 void dmC64ImageDump(FILE *fh, const DMC64Image *img, const DMC64ImageFormat *fmt, const char *indent) 132 void dmC64ImageDump(FILE *fh, const DMC64Image *img, const DMC64ImageFormat *fmt, const char *indent)
133 { 133 {
134 char typeStr[64]; 134 char typeStr[64];
135 135
136 if (fmt != NULL) 136 dmC64ImageDumpLine(fh, indent,
137 { 137 "Format", "%s [%s]",
138 dmC64ImageDumpLine(fh, indent, 138 fmt != NULL ? fmt->name : "UNKNOWN",
139 "Format", "%s [%s]", 139 fmt != NULL ? fmt->fext : "???");
140 fmt->name, fmt->fext);
141 }
142 140
143 if (img != NULL) 141 if (img != NULL)
144 { 142 {
145 dmC64GetImageTypeString(typeStr, sizeof(typeStr), img->extraInfo[D64_EI_MODE], true); 143 dmC64GetImageTypeString(typeStr, sizeof(typeStr), img->extraInfo[D64_EI_MODE], true);
146 144