diff tools/64vw.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 5db6e0b63b35
children 79ece1072143
line wrap: on
line diff
--- a/tools/64vw.c	Sat Jun 15 07:54:39 2019 +0300
+++ b/tools/64vw.c	Sat Jun 15 07:55:26 2019 +0300
@@ -57,27 +57,6 @@
 }
 
 
-void argShowFormats()
-{
-    printf(
-    "Available C64 bitmap formats (-f <frmt>):\n"
-    " frmt | Type            | Description\n"
-    "------+-----------------+-------------------------------------\n"
-    );
-    for (int i = 0; i < ndmC64ImageFormats; i++)
-    {
-        const DMC64ImageFormat *fmt = dmC64ImageFormatsSorted[i];
-        char buf[64];
-        printf("%-6s| %-15s | %s%s\n",
-            fmt->fext,
-            dmC64GetImageTypeString(buf, sizeof(buf), fmt->format->type, FALSE),
-            fmt->name,
-            fmt->flags & DM_FMT_BROKEN ? " [BROKEN]" : "");
-    }
-    printf("%d formats supported.\n", ndmC64ImageFormats);
-}
-
-
 void argShowHelp()
 {
     dmPrintBanner(stdout, dmProgName, "[options] <input image file>");
@@ -151,7 +130,7 @@
             break;
 
         case 5:
-            argShowFormats();
+            argShowC64Formats(stdout, FALSE);
             exit(0);
             break;