Search
lxdream.org :: lxdream/src/main.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/main.c
changeset 182:e3b513538548
prev180:e6dcf9b65658
next209:ff67a7b9aa17
author nkeynes
date Thu Jul 06 08:47:33 2006 +0000 (13 years ago)
permissions -rw-r--r--
last change Add -q command line argument to allow dcload_exit() to actually exit lxdream
altogether (useful for test cases)
file annotate diff log raw
1.1 --- a/src/main.c Sun Jul 02 04:59:00 2006 +0000
1.2 +++ b/src/main.c Thu Jul 06 08:47:33 2006 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: main.c,v 1.18 2006-07-02 04:59:00 nkeynes Exp $
1.6 + * $Id: main.c,v 1.19 2006-07-06 08:47:33 nkeynes Exp $
1.7 *
1.8 * Main program, initializes dreamcast and gui, then passes control off to
1.9 * the gtk main loop (currently).
1.10 @@ -35,7 +35,7 @@
1.11
1.12 #define S3M_PLAYER "s3mplay.bin"
1.13
1.14 -char *option_list = "a:s:A:V:phbd:c:";
1.15 +char *option_list = "a:s:A:V:pqhbd:c:";
1.16 struct option longopts[1] = { { NULL, 0, 0, 0 } };
1.17 char *aica_program = NULL;
1.18 char *s3m_file = NULL;
1.19 @@ -87,6 +87,9 @@
1.20 case 'p': /* Start immediately */
1.21 start_immediately = TRUE;
1.22 break;
1.23 + case 'q': /* Quit on DC program exit */
1.24 + dcload_set_allow_exit(TRUE);
1.25 + break;
1.26 case 'b': /* No BIOS */
1.27 without_bios = TRUE;
1.28 break;
.