File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff 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
701702static 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 ];
You can’t perform that action at this time.
0 commit comments