Skip to content

Commit 5765cd5

Browse files
committed
Add version information to n64graphics standalone
1 parent c1d0e92 commit 5765cd5

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

n64graphics.c

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -696,11 +696,19 @@ const char *graphics_get_version(void)
696696
}
697697

698698
#ifdef N64GRAPHICS_STANDALONE
699+
#define N64GRAPHICS_VERSION "0.2"
699700
#include <string.h>
700701

701702
static void print_usage(void)
702703
{
703-
ERROR("n64graphics <binfile> [png files]\n");
704+
ERROR("Usage: n64graphics BINFILE [PNGFILE ...]\n"
705+
"\n"
706+
"n64graphics v" N64GRAPHICS_VERSION ": N64 graphics manipulator\n"
707+
"\n"
708+
"File arguments:\n"
709+
" BINFILE binary file to update\n"
710+
" PNGFILE list of PNG files to insert with filename: \"*.<offset>.<format><depth>.png\"\n");
711+
exit(EXIT_FAILURE);
704712
}
705713

706714
// decode offset, format, and depth based on filename: <offset>.<format><depth>.png
@@ -779,7 +787,6 @@ int main(int argc, char *argv[])
779787

780788
if (argc < 3) {
781789
print_usage();
782-
return 1;
783790
}
784791

785792
binfilename = argv[1];

0 commit comments

Comments
 (0)