Search
lxdream.org :: lxdream/src/main.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/main.c
changeset 464:8e099fad42a6
prev450:207461e79f21
next469:3e2a0fde5cd8
author nkeynes
date Sat Oct 27 05:44:54 2007 +0000 (14 years ago)
permissions -rw-r--r--
last change Initial gdrom attachment menu
file annotate diff log raw
1.1 --- a/src/main.c Wed Oct 17 11:26:45 2007 +0000
1.2 +++ b/src/main.c Sat Oct 27 05:44:54 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: main.c,v 1.30 2007-10-17 11:26:44 nkeynes Exp $
1.6 + * $Id: main.c,v 1.31 2007-10-27 05:44:54 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 @@ -69,7 +69,7 @@
1.11 textdomain (PACKAGE);
1.12 #endif
1.13 gboolean ui_initialized = gui_parse_cmdline(&argc, &argv);
1.14 -
1.15 +
1.16 while( (opt = getopt_long( argc, argv, option_list, longopts, NULL )) != -1 ) {
1.17 switch( opt ) {
1.18 case 'a': /* AICA only mode - argument is an AICA program */
1.19 @@ -192,6 +192,15 @@
1.20 gdrom_mount_image( disc_file );
1.21 }
1.22
1.23 + if( gdrom_get_current_disc() == NULL ) {
1.24 + disc_file = lxdream_get_config_value( CONFIG_GDROM );
1.25 + if( disc_file != NULL ) {
1.26 + gdrom_mount_image( disc_file );
1.27 + }
1.28 + } else {
1.29 + lxdream_set_global_config_value( CONFIG_GDROM, gdrom_get_current_disc()->name );
1.30 + }
1.31 +
1.32 sh4_set_use_xlat( use_xlat );
1.33
1.34 if( start_immediately ) {
.