@ -34,6 +34,7 @@ enum {
OPT_NOCMD ,
OPT_NOCMD ,
OPT_VBLANK ,
OPT_VBLANK ,
OPT_FIXLOOP ,
OPT_FIXLOOP ,
OPT_NORC ,
} ;
} ;
static void usage ( char * s )
static void usage ( char * s )
@ -66,6 +67,7 @@ static void usage(char *s)
" -l --loop Enable module looping \n "
" -l --loop Enable module looping \n "
" -M --mute ch-list Mute the specified channels \n "
" -M --mute ch-list Mute the specified channels \n "
" --nocmd Disable interactive commands \n "
" --nocmd Disable interactive commands \n "
" --norc Don't read configuration files \n "
" --offset-bug-emulation Emulate Protracker 2.x bug in effect 9 \n "
" --offset-bug-emulation Emulate Protracker 2.x bug in effect 9 \n "
" -R --random Random order playing \n "
" -R --random Random order playing \n "
" -S --solo ch-list Set channels to solo mode \n "
" -S --solo ch-list Set channels to solo mode \n "
@ -113,6 +115,7 @@ static struct option lopt[] = {
{ " mute " , 1 , 0 , ' M ' } ,
{ " mute " , 1 , 0 , ' M ' } ,
{ " null " , 0 , 0 , ' N ' } ,
{ " null " , 0 , 0 , ' N ' } ,
{ " nocmd " , 0 , 0 , OPT_NOCMD } ,
{ " nocmd " , 0 , 0 , OPT_NOCMD } ,
{ " norc " , 0 , 0 , OPT_NORC } ,
{ " nofilter " , 0 , 0 , ' F ' } ,
{ " nofilter " , 0 , 0 , ' F ' } ,
{ " offset-bug-emulation " , 0 , 0 , OPT_FX9BUG } ,
{ " offset-bug-emulation " , 0 , 0 , OPT_FX9BUG } ,
{ " output-file " , 1 , 0 , ' o ' } ,
{ " output-file " , 1 , 0 , ' o ' } ,
@ -209,6 +212,9 @@ void get_options(int argc, char **argv, struct options *options)
case OPT_NOCMD :
case OPT_NOCMD :
options - > nocmd = 1 ;
options - > nocmd = 1 ;
break ;
break ;
case OPT_NORC :
options - > norc = 1 ;
break ;
case ' o ' :
case ' o ' :
options - > out_file = optarg ;
options - > out_file = optarg ;
if ( strlen ( optarg ) > = 4 & &
if ( strlen ( optarg ) > = 4 & &