1.1 --- a/src/loader.c Tue Jun 27 09:34:27 2006 +0000
1.2 +++ b/src/loader.c Mon Jan 15 08:30:50 2007 +0000
1.5 - * $Id: loader.c,v 1.13 2006-06-27 09:34:27 nkeynes Exp $
1.6 + * $Id: loader.c,v 1.14 2006-07-02 04:59:00 nkeynes Exp $
1.8 * File loading routines, mostly for loading demos without going through the
1.9 * whole procedure of making a CD image for them.
1.10 @@ -114,8 +114,12 @@
1.11 /* Load in a bootstrap before the binary, to initialize everything
1.14 - mem_load_block( bootstrap_file, BOOTSTRAP_LOAD_ADDR, BOOTSTRAP_SIZE );
1.15 - sh4_set_pc( BOOTSTRAP_LOAD_ADDR + 0x300 );
1.16 + if( mem_load_block( bootstrap_file, BOOTSTRAP_LOAD_ADDR, BOOTSTRAP_SIZE ) != 0 ) {
1.17 + /* Try it without the bootstrap */
1.20 + sh4_set_pc( BOOTSTRAP_LOAD_ADDR + 0x300 );
1.29 - file_load_postload( head.e_entry );
1.30 + return file_load_postload( head.e_entry );