Mercurial > hg > dmlib
comparison tools/lib64util.c @ 2245:95f669692b01
Mention support for external palette files in palette help, and also
list the supported palette file formats.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 15 Jun 2019 14:14:40 +0300 |
parents | b26e37e7cbe6 |
children | bb7255792dd6 |
comparison
equal
deleted
inserted
replaced
2244:b26e37e7cbe6 | 2245:95f669692b01 |
---|---|
137 } | 137 } |
138 | 138 |
139 | 139 |
140 void argShowC64PaletteHelp(FILE *fp) | 140 void argShowC64PaletteHelp(FILE *fp) |
141 { | 141 { |
142 fprintf(fp, "\nAvailable C64 palettes:\n"); | 142 fprintf(fp, |
143 "\n" | |
144 "Available C64 palettes (-p <name>):\n" | |
145 "-----------------------------------\n"); | |
146 | |
143 for (int n = 0; n < ndmC64DefaultPalettes; n++) | 147 for (int n = 0; n < ndmC64DefaultPalettes; n++) |
144 { | 148 { |
145 DMC64Palette *pal = &dmC64DefaultPalettes[n]; | 149 DMC64Palette *pal = &dmC64DefaultPalettes[n]; |
146 fprintf(fp, | 150 fprintf(fp, |
147 "%-10s | %s\n", | 151 "%-10s | %s\n", |
148 pal->name, pal->desc); | 152 pal->name, pal->desc); |
153 } | |
154 | |
155 fprintf(fp, | |
156 "\n" | |
157 "Instead one of the internal palettes, you can\n" | |
158 "also specify an external palette file.\n" | |
159 "Supported palette file formats are:\n" | |
160 "-----------------------------------\n" | |
161 ); | |
162 | |
163 for (int n = 0; n < ndmPaletteFormatList; n++) | |
164 { | |
165 DMPaletteFormat *fmt = &dmPaletteFormatList[n]; | |
166 if (fmt->flags & DM_FMT_RD) | |
167 { | |
168 fprintf(fp, | |
169 "%-6s | %s\n", | |
170 fmt->fext, fmt->name); | |
171 } | |
149 } | 172 } |
150 fprintf(fp, "\n"); | 173 fprintf(fp, "\n"); |
151 } | 174 } |
152 | 175 |
153 | 176 |