Search
lxdream.org :: lxdream/src/main.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/main.c
changeset 446:def93c34c84c
prev435:7a5d71e8560b
next450:207461e79f21
author nkeynes
date Tue Oct 16 12:28:42 2007 +0000 (13 years ago)
permissions -rw-r--r--
last change Change command line handling to not require -d
file annotate diff log raw
1.1 --- a/src/main.c Wed Oct 10 11:02:04 2007 +0000
1.2 +++ b/src/main.c Tue Oct 16 12:28:42 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: main.c,v 1.28 2007-10-10 11:02:04 nkeynes Exp $
1.6 + * $Id: main.c,v 1.29 2007-10-16 12:28:42 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 @@ -179,8 +179,16 @@
1.11
1.12 maple_reattach_all();
1.13 INFO( "%s! ready...", APP_NAME );
1.14 - if( optind < argc ) {
1.15 - file_load_magic( argv[optind] );
1.16 +
1.17 + for( ; optind < argc; optind++ ) {
1.18 + gboolean ok = gdrom_mount_image(argv[optind]);
1.19 + if( !ok ) {
1.20 + ok = file_load_magic( argv[optind] );
1.21 + }
1.22 + if( !ok ) {
1.23 + ERROR( "Unrecognized file '%s'", argv[optind] );
1.24 + }
1.25 + start_immediately = ok;
1.26 }
1.27
1.28 if( disc_file != NULL ) {
.