Search
lxdream.org :: lxdream :: r1116:09a69dfc7931
lxdream 0.9.1
released Jun 29
Download Now
changeset1116:09a69dfc7931
parent1115:90292b2f2243
child1117:0b14a8ec373b
authornkeynes
dateWed Sep 08 08:43:15 2010 +1000 (9 years ago)
Actually report the error when the command-line disc or bin couldn't be loaded
src/main.c
1.1 --- a/src/main.c Wed Sep 08 08:42:09 2010 +1000
1.2 +++ b/src/main.c Wed Sep 08 08:43:15 2010 +1000
1.3 @@ -284,8 +284,10 @@
1.4 ERROR( "Multiple GD-ROM discs given on command-line, ignoring %s", argv[optind] );
1.5 } else {
1.6 have_disc = gdrom_mount_image(argv[optind], &err);
1.7 - if( !have_disc )
1.8 + if( !have_disc ) {
1.9 + ERROR( err.msg );
1.10 no_start = TRUE;
1.11 + }
1.12 }
1.13 }
1.14 }
1.15 @@ -296,8 +298,10 @@
1.16 ERROR( "Both a save state and an executable were specified, ignoring %s", exec_name );
1.17 } else {
1.18 have_exec = file_load_exec( exec_name, &err );
1.19 - if( !have_exec )
1.20 + if( !have_exec ) {
1.21 + ERROR( err.msg );
1.22 no_start = TRUE;
1.23 + }
1.24 }
1.25 }
1.26
.