Search
lxdream.org :: lxdream/src/main.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/main.c
changeset 556:72dbf70344db
prev543:361ec0a70cf2
next561:533f6b478071
author nkeynes
date Tue Jan 01 04:49:57 2008 +0000 (12 years ago)
branchlxdream-mmu
permissions -rw-r--r--
last change Add command line option to control default log level
file annotate diff log raw
1.1 --- a/src/main.c Thu Nov 22 11:10:15 2007 +0000
1.2 +++ b/src/main.c Tue Jan 01 04:49:57 2008 +0000
1.3 @@ -34,7 +34,7 @@
1.4
1.5 #define S3M_PLAYER "s3mplay.bin"
1.6
1.7 -char *option_list = "a:m:s:A:V:puhbd:c:t:xD";
1.8 +char *option_list = "a:m:s:A:V:v:puhbd:c:t:xD";
1.9 struct option longopts[1] = { { NULL, 0, 0, 0 } };
1.10 char *aica_program = NULL;
1.11 char *s3m_file = NULL;
1.12 @@ -109,6 +109,11 @@
1.13 time_secs = (uint32_t)t;
1.14 time_nanos = (int)((t - time_secs) * 1000000000);
1.15 break;
1.16 + case 'v': /* Log verbosity */
1.17 + if( !set_global_log_level(optarg) ) {
1.18 + ERROR( "Unrecognized log level '%s'", optarg );
1.19 + }
1.20 + break;
1.21 case 'x': /* Disable translator */
1.22 use_xlat = FALSE;
1.23 break;
.