--- SIDPlayer/src/main_sdl.cpp 2001/01/16 14:12:54 1.4 +++ SIDPlayer/src/main_sdl.cpp 2001/05/22 20:01:34 1.10 @@ -1,7 +1,7 @@ /* * main_sdl.cpp - SIDPlayer SDL main program * - * SIDPlayer (C) Copyright 1996-2000 Christian Bauer + * SIDPlayer (C) Copyright 1996-2001 Christian Bauer * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -21,8 +21,11 @@ #include "sys.h" #include +#include + #include #include +#include #include "main.h" #include "prefs.h" @@ -35,7 +38,8 @@ static void usage(const char *prg_name) { - printf("\nUsage: %s [options] FILE [song_number]]\n", prg_name); + printf("Usage: %s [OPTION...] FILE [song_number]\n", prg_name); + PrefsPrintUsage(); exit(0); } @@ -50,7 +54,7 @@ int main(int argc, char **argv) // Print banner printf( PACKAGE " Version " VERSION "\n\n" - "Copyright (C) 1996-2000 Christian Bauer\n" + "Copyright (C) 1996-2001 Christian Bauer\n" "E-mail: Christian.Bauer@uni-mainz.de\n" "http://www.uni-mainz.de/~bauec002/\n\n" "This is free software with ABSOLUTELY NO WARRANTY.\n" @@ -58,24 +62,6 @@ int main(int argc, char **argv) "For details, see the file COPYING.\n\n" ); - // Parse arguments - if (argc < 2) - usage(argv[0]); - char *file_name = argv[argc - 1]; - int song = 0; - if (argc >= 3) { - bool only_numbers = true; - for (int i=0; i 8) { + // WAV file is little-endian, swap audio data + for (int b=0; b