Search
lxdream.org :: lxdream/src/main.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/main.c
changeset 678:35eb00945316
prev671:a530ea88eebd
next681:1755a126b109
author nkeynes
date Thu May 29 11:00:26 2008 +0000 (13 years ago)
permissions -rw-r--r--
last change Split gdrom.h into public and private gddriver.h
Reorganize gdrom mount to use a disc change hook
file annotate diff log raw
1.1 --- a/src/main.c Thu May 15 10:22:39 2008 +0000
1.2 +++ b/src/main.c Thu May 29 11:00:26 2008 +0000
1.3 @@ -17,6 +17,7 @@
1.4 * GNU General Public License for more details.
1.5 */
1.6
1.7 +#include <stdlib.h>
1.8 #include <unistd.h>
1.9 #include <getopt.h>
1.10 #include <glib/gi18n.h>
1.11 @@ -178,7 +179,7 @@
1.12 INFO( "%s! ready...", APP_NAME );
1.13
1.14 for( ; optind < argc; optind++ ) {
1.15 - gboolean ok = gdrom_menu_open_file(argv[optind]);
1.16 + gboolean ok = gdrom_mount_image(argv[optind]);
1.17 if( !ok ) {
1.18 ok = file_load_magic( argv[optind] );
1.19 }
1.20 @@ -191,14 +192,14 @@
1.21 }
1.22
1.23 if( disc_file != NULL ) {
1.24 - gdrom_menu_open_file( disc_file );
1.25 + gdrom_mount_image( disc_file );
1.26 }
1.27
1.28 if( gdrom_get_current_disc() == NULL ) {
1.29 - disc_file = lxdream_get_config_value( CONFIG_GDROM );
1.30 - if( disc_file != NULL ) {
1.31 - gdrom_menu_open_file( disc_file );
1.32 - }
1.33 + disc_file = lxdream_get_config_value( CONFIG_GDROM );
1.34 + if( disc_file != NULL ) {
1.35 + gdrom_mount_image( disc_file );
1.36 + }
1.37 }
1.38
1.39 sh4_set_use_xlat( use_xlat );
.